We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 672329e commit e9be648Copy full SHA for e9be648
1 file changed
rpchealth.py
@@ -277,7 +277,7 @@ async def update_health_status():
277
if server_data.get('last_block'):
278
valid_blocks = [b for b in server_data['last_block'].values() if b is not None]
279
max_block = max(valid_blocks, default=0)
280
- if server_data['last_block'].get(key) is not None and (max_block - server_data['last_block'][key] > STALE_THRESHOLD):
+ if server_data['last_block'].get(key) is not None and (max_block - server_data['last_block'][key] > (STALE_THRESHOLD * 5)):
281
health_status = 503
282
server_data['health_status'][key] = health_status # Update health status
283
logger.warning(f"Server {key} marked unhealthy due to continuous block difference.")
0 commit comments