Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Remove conn_id | Erik Johnston | 2018-09-04 | 1 | -2/+2 | |
| | ||||||
* | Remove conn_id from repl prometheus metrics | Erik Johnston | 2018-09-03 | 1 | -10/+10 | |
| | | | | | `conn_id` gets set to a random string, and so we end up filling up prometheus with tonnes of data series, which is bad. | |||||
* | Logcontexts for replication command handlers | Richard van der Hoff | 2018-08-17 | 3 | -15/+43 | |
| | | | | | | | | | | Run the handlers for replication commands as background processes. This should improve the visibility in our metrics, and reduce the number of "running db transaction from sentinel context" warnings. Ideally it means converting the things that fire off deferreds into the night into things that actually return a Deferred when they are done. I've made a bit of a stab at this, but it will probably be leaky. | |||||
* | Fix unit tests | Richard van der Hoff | 2018-07-25 | 1 | -1/+1 | |
| | | | | | | on_notifier_poke no longer runs synchonously, so we have to do a different hack to make sure that the replication data has been sent. Let's actually listen for its arrival. | |||||
* | Wrap a number of things that run in the background | Richard van der Hoff | 2018-07-25 | 1 | -6/+8 | |
| | | | | | This will reduce the number of "Starting db connection from sentinel context" warnings, and will help with our metrics. | |||||
* | run isort | Amber Brown | 2018-07-09 | 4 | -30/+41 | |
| | ||||||
* | Attempt to be more performant on PyPy (#3462) | Amber Brown | 2018-06-28 | 1 | -6/+10 | |
| | ||||||
* | Remove all global reactor imports & pass it around explicitly (#3424) | Amber Brown | 2018-06-25 | 2 | -5/+5 | |
| | ||||||
* | Fix tcp protocol metrics naming (#3410) | Amber Brown | 2018-06-21 | 1 | -18/+35 | |
| | ||||||
* | Fix replication metrics | Richard van der Hoff | 2018-06-04 | 1 | -2/+2 | |
| | | | | fix bug introduced in #3256 | |||||
* | Merge remote-tracking branch 'origin/develop' into 3218-official-prom | Amber Brown | 2018-05-28 | 2 | -8/+9 | |
|\ | ||||||
| * | Merge pull request #3244 from NotAFile/py3-six-4 | Amber Brown | 2018-05-24 | 2 | -5/+7 | |
| |\ | | | | | | | replace some iteritems with six | |||||
| | * | replace some iteritems with six | Adrian Tschira | 2018-05-19 | 2 | -5/+7 | |
| | | | | | | | | | | | | Signed-off-by: Adrian Tschira <nota@notafile.com> | |||||
* | | | more cleanup | Amber Brown | 2018-05-22 | 2 | -6/+10 | |
| | | | ||||||
* | | | fix the test failures | Amber Brown | 2018-05-22 | 1 | -1/+1 | |
| | | | ||||||
* | | | cleanups, self-registration | Amber Brown | 2018-05-22 | 1 | -4/+5 | |
| | | | ||||||
* | | | Merge remote-tracking branch 'origin/develop' into 3218-official-prom | Amber Brown | 2018-05-22 | 1 | -0/+2 | |
|\| | | ||||||
| * | | Send users a server notice about consent | Richard van der Hoff | 2018-05-22 | 1 | -0/+2 | |
| |/ | | | | | | | | | When a user first syncs, we will send them a server notice asking them to consent to the privacy policy if they have not already done so. | |||||
* | | rest of the changes | Amber Brown | 2018-05-21 | 1 | -16/+14 | |
| | | ||||||
* | | replacing portions | Amber Brown | 2018-05-21 | 1 | -54/+34 | |
|/ | ||||||
* | make imports local | Adrian Tschira | 2018-04-28 | 2 | -4/+4 | |
| | | | | Signed-off-by: Adrian Tschira <nota@notafile.com> | |||||
* | Fix json encoding bug in replication | Richard van der Hoff | 2018-04-03 | 1 | -1/+1 | |
| | | | | json encoders have an encode method, not a dumps method. | |||||
* | Use static JSONEncoders | Richard van der Hoff | 2018-03-29 | 1 | -3/+5 | |
| | | | | | using json.dumps with custom options requires us to create a new JSONEncoder on each call. It's more efficient to create one upfront and reuse it. | |||||
* | Explicitly use simplejson | Erik Johnston | 2018-03-20 | 1 | -7/+7 | |
| | ||||||
* | Fix replication after switch to simplejson | Erik Johnston | 2018-03-19 | 1 | -2/+4 | |
| | | | | | Turns out that simplejson serialises namedtuple's as dictionaries rather than tuples by default. | |||||
* | Merge branch 'master' of github.com:matrix-org/synapse into develop | Erik Johnston | 2018-03-19 | 1 | -1/+1 | |
|\ | ||||||
| * | Replace ujson with simplejson | Erik Johnston | 2018-03-15 | 1 | -1/+1 | |
| | | ||||||
* | | Metrics for number of RDATA commands received | Richard van der Hoff | 2018-01-15 | 1 | -5/+14 | |
|/ | | | | I found myself wishing we had this. | |||||
* | Fix some logcontext leaks in replication resource | Richard van der Hoff | 2017-11-23 | 1 | -2/+4 | |
| | | | | | The @measure_func annotations rely on the wrapped function respecting the logcontext rules. Add the necessary yields to make this work. | |||||
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 1 | -1/+1 | |
| | | | | what could possibly go wrong | |||||
* | log when we get an exception handling replication updates | hera | 2017-10-12 | 1 | -1/+5 | |
| | ||||||
* | Fix replication. And notify | Erik Johnston | 2017-07-20 | 1 | -0/+20 | |
| | ||||||
* | Reduce log levels in tcp replication | Erik Johnston | 2017-07-11 | 1 | -2/+2 | |
| | ||||||
* | Serialize user ip command as json | Erik Johnston | 2017-06-27 | 1 | -5/+9 | |
| | ||||||
* | Make workers report to master for user ip updates | Erik Johnston | 2017-06-27 | 4 | -0/+55 | |
| | ||||||
* | Initial worker impl | Erik Johnston | 2017-06-16 | 1 | -0/+22 | |
| | ||||||
* | Add missing notifier | Erik Johnston | 2017-06-09 | 1 | -1/+2 | |
| | ||||||
* | Typo | Erik Johnston | 2017-04-10 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #2109 from matrix-org/erikj/send_queue_fix | Erik Johnston | 2017-04-10 | 1 | -2/+2 | |
|\ | | | | | Fix up federation SendQueue and document types | |||||
| * | Comments | Erik Johnston | 2017-04-10 | 1 | -2/+2 | |
| | | ||||||
* | | Up replication ping timeout | Erik Johnston | 2017-04-10 | 1 | -2/+4 | |
|/ | ||||||
* | Merge pull request #2103 from matrix-org/erikj/no-double-encode | Erik Johnston | 2017-04-07 | 1 | -28/+76 | |
|\ | | | | | Don't double encode replication data | |||||
| * | Document types of the replication streams | Erik Johnston | 2017-04-06 | 1 | -28/+76 | |
| | | ||||||
* | | Fix incorrect type when using InvalidateCacheCommand | Erik Johnston | 2017-04-06 | 1 | -1/+1 | |
| | | ||||||
* | | Add log lines | Erik Johnston | 2017-04-05 | 1 | -1/+2 | |
| | | ||||||
* | | Rearrange metrics | Erik Johnston | 2017-04-05 | 1 | -16/+31 | |
| | | ||||||
* | | Fix typo | Erik Johnston | 2017-04-05 | 1 | -2/+2 | |
| | | ||||||
* | | Fixup some metrics for tcp repl | Erik Johnston | 2017-04-05 | 1 | -0/+16 | |
|/ | ||||||
* | Merge pull request #2097 from matrix-org/erikj/repl_tcp_client | Erik Johnston | 2017-04-05 | 1 | -0/+196 | |
|\ | | | | | Move to using TCP replication | |||||
| * | Add basic replication client handler and factory | Erik Johnston | 2017-04-03 | 1 | -0/+196 | |
| | | ||||||
* | | Merge pull request #2098 from matrix-org/erikj/repl_tcp_fix | Erik Johnston | 2017-04-04 | 3 | -6/+15 | |
|\ \ | | | | | | | Advance replication streams even if nothing is listening | |||||
| * | | Advance replication streams even if nothing is listening | Erik Johnston | 2017-04-04 | 3 | -6/+15 | |
| |/ | | | | | | | | | | | Otherwise the streams don't advance and steadily fall behind, so when a worker does connect either a) they'll be streamed lots of old updates or b) the connection will fail as the streams are too far behind. | |||||
* / | Fiddle tcp replication logging | Erik Johnston | 2017-04-04 | 1 | -2/+2 | |
|/ | ||||||
* | Always advance stream tokens | Erik Johnston | 2017-04-03 | 1 | -1/+4 | |
| | ||||||
* | Use callbacks to notify tcp replication rather than deferreds | Erik Johnston | 2017-03-31 | 1 | -14/+1 | |
| | ||||||
* | Add a timestamp to USER_SYNC command | Erik Johnston | 2017-03-31 | 3 | -9/+17 | |
| | | | | This timestamp is used to indicate when the user last sync'd | |||||
* | Fix up docs | Erik Johnston | 2017-03-31 | 2 | -19/+3 | |
| | ||||||
* | Add server side resource for tcp replication | Erik Johnston | 2017-03-30 | 1 | -0/+300 | |
| | ||||||
* | Initial TCP protocol implementation | Erik Johnston | 2017-03-30 | 3 | -0/+974 | |
| | | | | This defines the low level TCP replication protocol | |||||
* | Define the various streams we will replicate | Erik Johnston | 2017-03-30 | 2 | -0/+423 | |