|
| 1 | +/* Copyright 2023 The Matrix.org Foundation C.I.C |
| 2 | + * |
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | + * you may not use this file except in compliance with the License. |
| 5 | + * You may obtain a copy of the License at |
| 6 | + * |
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | + * |
| 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | + * See the License for the specific language governing permissions and |
| 13 | + * limitations under the License. |
| 14 | + */ |
| 15 | + |
| 16 | + |
| 17 | +--- destinations |
| 18 | +COMMENT ON TABLE destinations IS |
| 19 | + 'Information about remote homeservers and the health of our connection to them.'; |
| 20 | + |
| 21 | +COMMENT ON COLUMN destinations.destination IS 'server name of remote homeserver in question'; |
| 22 | + |
| 23 | +COMMENT ON COLUMN destinations.last_successful_stream_ordering IS |
| 24 | +$$Stream ordering of the most recently successfully sent PDU to this server, sent through normal send (not e.g. backfill). |
| 25 | +In Catch-Up Mode, the original PDU persisted by us is represented here, even if we sent a later forward extremity in its stead. |
| 26 | +See `destination_rooms` for more information about catch-up.$$; |
| 27 | + |
| 28 | +COMMENT ON COLUMN destinations.retry_last_ts IS |
| 29 | +$$The last time we tried and failed to reach the remote server, in ms. |
| 30 | +This field is reset to `0` when we succeed in connecting again.$$; |
| 31 | + |
| 32 | +COMMENT ON COLUMN destinations.retry_interval IS |
| 33 | +$$How long, in milliseconds, to wait since the last time we tried to reach the remote server before trying again. |
| 34 | +This field is reset to `0` when we succeed in connecting again.$$; |
| 35 | + |
| 36 | +COMMENT ON COLUMN destinations.failure_ts IS |
| 37 | +$$The first time we tried and failed to reach the remote server, in ms. |
| 38 | +This field is reset to `NULL` when we succeed in connecting again.$$; |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +--- destination_rooms |
| 43 | +COMMENT ON TABLE destination_rooms IS |
| 44 | + 'Information about transmission of PDUs in a given room to a given remote homeserver.'; |
| 45 | + |
| 46 | +COMMENT ON COLUMN destination_rooms.destination IS 'server name of remote homeserver in question'; |
| 47 | + |
| 48 | +COMMENT ON COLUMN destination_rooms.room_id IS 'room ID in question'; |
| 49 | + |
| 50 | +COMMENT ON COLUMN destination_rooms.stream_ordering IS |
| 51 | +$$`stream_ordering` of the most recent PDU in this room that needs to be sent (by us) to this homeserver. |
| 52 | +This can only be pointing to our own PDU because we are only responsible for sending our own PDUs.$$; |
0 commit comments