feat(federation): add last_probe_at/probe_attempts columns for peer recovery pacing
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE `federation_peers` ADD `last_probe_at` integer;--> statement-breakpoint
|
||||
ALTER TABLE `federation_peers` ADD `probe_attempts` integer DEFAULT 0 NOT NULL;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -43,6 +43,13 @@
|
||||
"when": 1778428627458,
|
||||
"tag": "0005_group_dm_metadata",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 6,
|
||||
"version": "6",
|
||||
"when": 1782474063349,
|
||||
"tag": "0006_spicy_scourge",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -370,6 +370,8 @@ export const federationPeers = sqliteTable('federation_peers', {
|
||||
lastFailureAt: integer('last_failure_at'),
|
||||
consecutiveFailures: integer('consecutive_failures').notNull().default(0),
|
||||
consecutiveAuthFailures: integer('consecutive_auth_failures').notNull().default(0),
|
||||
lastProbeAt: integer('last_probe_at'),
|
||||
probeAttempts: integer('probe_attempts').notNull().default(0),
|
||||
lastSyncedAt: integer('last_synced_at').default(0),
|
||||
remoteMaxUploadSize: integer('remote_max_upload_size'),
|
||||
nonceSupported: integer('nonce_supported').notNull().default(0),
|
||||
|
||||
Reference in New Issue
Block a user