diff --git a/kubernetes/base/redis.yml b/kubernetes/base/redis.yml index 3e561f08..0da55443 100644 --- a/kubernetes/base/redis.yml +++ b/kubernetes/base/redis.yml @@ -3,7 +3,7 @@ kind: Deployment metadata: name: defi-providers-redis spec: - replicas: 1 + replicas: 0 selector: matchLabels: component: defi-providers-redis diff --git a/kubernetes/production/patch-deployment.yml b/kubernetes/production/patch-deployment.yml index ea98a27d..e45ade69 100644 --- a/kubernetes/production/patch-deployment.yml +++ b/kubernetes/production/patch-deployment.yml @@ -3,4 +3,4 @@ kind: Deployment metadata: name: defi-providers spec: - replicas: 1 + replicas: 2 diff --git a/kubernetes/staging/patch-deployment.yml b/kubernetes/staging/patch-deployment.yml index ea98a27d..e45ade69 100644 --- a/kubernetes/staging/patch-deployment.yml +++ b/kubernetes/staging/patch-deployment.yml @@ -3,4 +3,4 @@ kind: Deployment metadata: name: defi-providers spec: - replicas: 1 + replicas: 2 diff --git a/src/util/data.ts b/src/util/data.ts index e1bb33c2..be1a06fe 100644 --- a/src/util/data.ts +++ b/src/util/data.ts @@ -5,7 +5,7 @@ const data = { CHAINS: { ethereum: { prefix: '', - delay: 600, + delay: 800, }, bsc: { prefix: 'bsc_', diff --git a/src/util/logger/appenders/logstashAppender.ts b/src/util/logger/appenders/logstashAppender.ts index e90ab15a..bb44b592 100644 --- a/src/util/logger/appenders/logstashAppender.ts +++ b/src/util/logger/appenders/logstashAppender.ts @@ -1,7 +1,7 @@ import 'dotenv/config.js'; import { config } from '../../../app.config'; import dgram from 'dgram'; -import { logger } from 'ethers'; +import os from 'os'; const client = dgram.createSocket('udp4'); interface ILoggingEvent { @@ -25,6 +25,7 @@ interface ILogstashMessage { Stack: string; Detail: string; Endpoint: string; + Host: string; Level: string; } const { LOGSTASH_HOST, LOGSTASH_PORT, LOGSTASH_INDEX } = config; @@ -46,6 +47,7 @@ function generatePayload(loggingEvent: ILoggingEvent): ILogstashMessage { Stack: stack, Detail: detail, Endpoint: endpoint, + Host: os.hostname(), Level: loggingEvent.level.levelStr, }; }