summary refs log tree commit diff
path: root/synapse/storage/schema/transactions.sql
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-12-07 02:26:07 +0000
committerMatthew Hodgson <matthew@matrix.org>2014-12-07 02:26:07 +0000
commitaed62a35832a3ec1c7425ecc99cab06a781263ba (patch)
tree6dd8bdeb4f79084a084f24f6747c1e1d00fcf973 /synapse/storage/schema/transactions.sql
parentPull in latest matrix-angular_sdk (diff)
downloadsynapse-aed62a35832a3ec1c7425ecc99cab06a781263ba.tar.xz
track replication destination health, and perform exponential back-off when sending transactions. does *not* yet retry transactions, but drops them on the floor if waiting for a server to recover.
Diffstat (limited to 'synapse/storage/schema/transactions.sql')
-rw-r--r--synapse/storage/schema/transactions.sql6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/schema/transactions.sql b/synapse/storage/schema/transactions.sql
index 88e3e4e04d..de461bfa15 100644
--- a/synapse/storage/schema/transactions.sql
+++ b/synapse/storage/schema/transactions.sql
@@ -59,3 +59,9 @@ CREATE INDEX IF NOT EXISTS transaction_id_to_pdu_tx ON transaction_id_to_pdu(tra
 CREATE INDEX IF NOT EXISTS transaction_id_to_pdu_dest ON transaction_id_to_pdu(destination);
 CREATE INDEX IF NOT EXISTS transaction_id_to_pdu_index ON transaction_id_to_pdu(transaction_id, destination);
 
+-- To track destination health
+CREATE TABLE IF NOT EXISTS destinations(
+    destination TEXT PRIMARY KEY,
+    retry_last_ts INTEGER,
+    retry_interval INTEGER
+);