schema_suggestor

command
v0.0.0-...-5178349 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2017 License: MIT Imports: 20 Imported by: 0

README

Schema Suggestor

The Schema Suggestor parses log files of untracked events from the processor and recommends schemas for them based on inferred types and lengths of fields in events.

Update Mechanism

The processors each flush their untracked events every 10 minutes to s3 and write an event to SQS. The schema suggestor polls for SQS messages every 2 minutes and adds them to an internal buffer. Every 5 minutes, that internal buffer is flushed, sending suggestions to blueprint and replacing previous suggestions.

This behavior has a few implications:

  • Every event that comes in will eventually show up in the schema suggestor for exactly five minutes, starting between 0 and ~12 minutes after reaching the processor.
  • Any given five-minute window may be empty if the processors sync up when they flush.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package processor contains logic to process gzipped Mixpanel event data into SQL table schemas.
Package processor contains logic to process gzipped Mixpanel event data into SQL table schemas.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL