Skip to content

Commit

Permalink
Merge pull request #178 from dappradar/delay_setting_master
Browse files Browse the repository at this point in the history
ethereum delay was increased and replicas was set to 2
  • Loading branch information
Sonmezturk committed Jul 25, 2023
2 parents b3c19f8 + 31bdb88 commit 8205be3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kubernetes/base/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: defi-providers-redis
spec:
replicas: 1
replicas: 0
selector:
matchLabels:
component: defi-providers-redis
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/production/patch-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Deployment
metadata:
name: defi-providers
spec:
replicas: 1
replicas: 2
2 changes: 1 addition & 1 deletion kubernetes/staging/patch-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Deployment
metadata:
name: defi-providers
spec:
replicas: 1
replicas: 2
2 changes: 1 addition & 1 deletion src/util/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const data = {
CHAINS: {
ethereum: {
prefix: '',
delay: 600,
delay: 800,
},
bsc: {
prefix: 'bsc_',
Expand Down
4 changes: 3 additions & 1 deletion src/util/logger/appenders/logstashAppender.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -25,6 +25,7 @@ interface ILogstashMessage {
Stack: string;
Detail: string;
Endpoint: string;
Host: string;
Level: string;
}
const { LOGSTASH_HOST, LOGSTASH_PORT, LOGSTASH_INDEX } = config;
Expand All @@ -46,6 +47,7 @@ function generatePayload(loggingEvent: ILoggingEvent): ILogstashMessage {
Stack: stack,
Detail: detail,
Endpoint: endpoint,
Host: os.hostname(),
Level: loggingEvent.level.levelStr,
};
}
Expand Down

0 comments on commit 8205be3

Please sign in to comment.