feature/IO-3499-React-19: Move react-grid-gallery to a vendor directory internally, will be removed shortly but for now we keep it
This commit is contained in:
10
server.js
10
server.js
@@ -213,7 +213,15 @@ const connectToRedisCluster = async () => {
|
||||
const clusterRetryStrategy = (times) => {
|
||||
const delay =
|
||||
Math.min(CLUSTER_RETRY_BASE_DELAY + times * 50, CLUSTER_RETRY_MAX_DELAY) + Math.random() * CLUSTER_RETRY_JITTER;
|
||||
logger.log(`Redis cluster not yet ready. Retrying in ${delay.toFixed(2)}ms`, "WARN", "redis", "api");
|
||||
// Only log every 5th retry or after 10 attempts to reduce noise during startup
|
||||
if (times % 5 === 0 || times > 10) {
|
||||
logger.log(
|
||||
`Redis cluster not yet ready. Retry attempt ${times}, waiting ${delay.toFixed(2)}ms`,
|
||||
"WARN",
|
||||
"redis",
|
||||
"api"
|
||||
);
|
||||
}
|
||||
return delay;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user