Module batching_mode

Source
Expand description

Run flow as batching mode which is time-window-aware normal query triggered when new data arrives

Modulesยง

engine ๐Ÿ”’
Batching mode engine
frontend_client ๐Ÿ”’
Frontend client to run flow as batching task which is time-window-aware normal query triggered every tick set by user
state ๐Ÿ”’
Batching mode task state, which changes frequently
task ๐Ÿ”’
time_window ๐Ÿ”’
Time window expr and helper functions
utils ๐Ÿ”’
some utils for helping with batching mode

Constantsยง

DEFAULT_BATCHING_ENGINE_QUERY_TIMEOUT
TODO(discord9): make those constants configurable The default batching engine query timeout is 10 minutes
FRONTEND_ACTIVITY_TIMEOUT
Frontend activity timeout if frontend is down(not sending heartbeat) for more than FRONTEND_ACTIVITY_TIMEOUT, it will be removed from the list that flownode use to connect
FRONTEND_SCAN_TIMEOUT
Flow wait for available frontend timeout, if failed to find available frontend after FRONTEND_SCAN_TIMEOUT elapsed, return error which should prevent flownode from starting
GRPC_CONN_TIMEOUT ๐Ÿ”’
Grpc connection timeout
GRPC_MAX_RETRIES ๐Ÿ”’
Grpc max retry number
MIN_REFRESH_DURATION
The minimum duration between two queries execution by batching mode task
SLOW_QUERY_THRESHOLD
will output a warn log for any query that runs for more that 1 minutes, and also every 1 minutes when that query is still running