graphql-engine/server/src-rsr
Brandon Simmons c425b554b8
server(events): utilize proper backpressure scheme (close #3839) (#4013)
* Test working through a backlog of change events

* Use a slightly more performant threaded http server in eventing pytests

This helped locally but not on CI it seems...

* Rework event processing for backpressure. Closes #3839

With loo low `HASURA_GRAPHQL_EVENTS_FETCH_INTERVAL` and/or slow webhooks
and/or too small `HASURA_GRAPHQL_EVENTS_HTTP_POOL_SIZE` we might
previously check out events from the DB faster than we can service them,
leading to space leaks, weirdness, etc.

Other changes:
- avoid fetch interval sleep latency when we previously did a non-empty
  fetch
- prefetch event batch while http pool is working
- warn when it appears we can't keep up with events being generated
- make some effort to process events in creation order so we don't
  starve older ones.

ALSO NOTE: HASURA_GRAPHQL_EVENTS_FETCH_INTERVAL changes semantics
slightly, since it only comes into play after an empty fetch. The old
semantics weren't documented in detail, so I think this is fine.
2020-03-11 11:57:31 +05:30
..
migrations server(events): utilize proper backpressure scheme (close #3839) (#4013) 2020-03-11 11:57:31 +05:30
catalog_metadata.sql allow custom mutations through actions (#3042) 2020-02-13 23:08:23 +05:30
catalog_version.txt server(events): utilize proper backpressure scheme (close #3839) (#4013) 2020-03-11 11:57:31 +05:30
catalog_versions.txt tag release v1.2.0-beta.2 (#4028) 2020-03-05 22:49:17 +05:30
clear_system_metadata.sql Make catalog metadata migrations work on all schema versions (fix #2826) (#2379) 2019-10-11 00:13:57 -05:00
console.html add server version to console html (close #2444) (#2452) 2019-07-02 12:44:29 +00:00
initialise.sql allow custom mutations through actions (#3042) 2020-02-13 23:08:23 +05:30
introspection.json adds basic support for remote schemas/schema stitching (#952) 2018-11-23 18:32:46 +05:30
schema.graphql move raven into graphql-engine repo 2018-06-28 00:32:00 +05:30
table_meta.sql Use a significantly more efficient table_info_agg view 2020-01-08 16:45:46 -06:00
trigger.sql.shakespeare Make catalog metadata migrations work on all schema versions (fix #2826) (#2379) 2019-10-11 00:13:57 -05:00