Merge pull request #15 from dirtydishes/lavender/prepare-docker-deployment

fix clickhouse startup resilience across services
This commit is contained in:
dirtydishes 2026-04-04 08:37:03 -04:00 committed by GitHub
commit f425a9575b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 9 deletions

View file

@ -1,3 +1,3 @@
<clickhouse>
<yandex>
<listen_host>0.0.0.0</listen_host>
</clickhouse>
</yandex>

View file

@ -525,7 +525,7 @@ const run = async () => {
database: env.CLICKHOUSE_DATABASE
});
await retry("clickhouse table init", 20, 500, async () => {
await retry("clickhouse table init", 120, 500, async () => {
await ensureOptionPrintsTable(clickhouse);
await ensureOptionNBBOTable(clickhouse);
await ensureEquityPrintsTable(clickhouse);

View file

@ -271,7 +271,7 @@ const run = async () => {
database: env.CLICKHOUSE_DATABASE
});
await retry("clickhouse table init", 20, 500, async () => {
await retry("clickhouse table init", 120, 500, async () => {
await ensureEquityCandlesTable(clickhouse);
});
@ -287,7 +287,7 @@ const run = async () => {
error: getErrorMessage(error)
});
});
await retry("redis connect", 20, 500, async () => {
await retry("redis connect", 120, 500, async () => {
if (!redis) {
return;
}

View file

@ -1138,7 +1138,7 @@ const run = async () => {
logger.warn("redis client error", { error: error instanceof Error ? error.message : String(error) });
});
await retry("redis connect", 20, 500, async () => {
await retry("redis connect", 120, 500, async () => {
await redis.connect();
});
@ -1147,7 +1147,7 @@ const run = async () => {
ttlSeconds: env.ROLLING_TTL_SEC
};
await retry("clickhouse table init", 20, 500, async () => {
await retry("clickhouse table init", 120, 500, async () => {
await ensureFlowPacketsTable(clickhouse);
await ensureEquityPrintJoinsTable(clickhouse);
await ensureInferredDarkTable(clickhouse);

View file

@ -212,7 +212,7 @@ const run = async () => {
database: env.CLICKHOUSE_DATABASE
});
await retry("clickhouse table init", 20, 500, async () => {
await retry("clickhouse table init", 120, 500, async () => {
await ensureEquityPrintsTable(clickhouse);
await ensureEquityQuotesTable(clickhouse);
});

View file

@ -282,7 +282,7 @@ const run = async () => {
database: env.CLICKHOUSE_DATABASE
});
await retry("clickhouse table init", 20, 500, async () => {
await retry("clickhouse table init", 120, 500, async () => {
await ensureOptionPrintsTable(clickhouse);
await ensureOptionNBBOTable(clickhouse);
});