Skip to content

Commit e9be648

Browse files
committed
increase stale threshold
1 parent 672329e commit e9be648

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rpchealth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ async def update_health_status():
277277
if server_data.get('last_block'):
278278
valid_blocks = [b for b in server_data['last_block'].values() if b is not None]
279279
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):
280+
if server_data['last_block'].get(key) is not None and (max_block - server_data['last_block'][key] > (STALE_THRESHOLD * 5)):
281281
health_status = 503
282282
server_data['health_status'][key] = health_status # Update health status
283283
logger.warning(f"Server {key} marked unhealthy due to continuous block difference.")

0 commit comments

Comments
 (0)