Skip to content

Commit 99ad675

Browse files
committed
lower redis ping interval to 4min
1 parent 400c5e5 commit 99ad675

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/redis-adapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const INTEGRATION_MODE = Object.freeze({
2424
NO_REDIS: "NO_REDIS",
2525
});
2626
const CF_REDIS_SERVICE_LABEL = "redis-cache";
27-
const REDIS_CLIENT_DEFAULT_PING_INTERVAL = 5 * 60000;
27+
const REDIS_CLIENT_DEFAULT_PING_INTERVAL = 4 * 60000;
2828

2929
const cfEnv = CfEnv.getInstance();
3030
const logger = new Logger(COMPONENT_NAME);

test/__snapshots__/redis-adapter.test.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exports[`redis-adapter test _createClientBase on CF | AWS-cluster 1`] = `
55
{
66
"defaults": {
77
"password": "mock-password",
8-
"pingInterval": 300000,
8+
"pingInterval": 240000,
99
"socket": {
1010
"host": "clustercfg.rg-0c94f0c1-db0a-495d-b385-4a44a87fc398.vwvwdz.euc1.cache.amazonaws.com",
1111
"port": 3991,
@@ -15,7 +15,7 @@ exports[`redis-adapter test _createClientBase on CF | AWS-cluster 1`] = `
1515
"rootNodes": [
1616
{
1717
"password": "mock-password",
18-
"pingInterval": 300000,
18+
"pingInterval": 240000,
1919
"socket": {
2020
"host": "clustercfg.rg-0c94f0c1-db0a-495d-b385-4a44a87fc398.vwvwdz.euc1.cache.amazonaws.com",
2121
"port": 3991,
@@ -31,7 +31,7 @@ exports[`redis-adapter test _createClientBase on CF | AZURE 1`] = `
3131
[
3232
{
3333
"password": "mock-password",
34-
"pingInterval": 300000,
34+
"pingInterval": 240000,
3535
"socket": {
3636
"host": "redis-389395bc-9765-4d9a-ba6b-7252c136abab.redis.cache.windows.net",
3737
"port": 6380,
@@ -45,7 +45,7 @@ exports[`redis-adapter test _createClientBase on CF | GCP 1`] = `
4545
[
4646
{
4747
"password": "mock-password",
48-
"pingInterval": 300000,
48+
"pingInterval": 240000,
4949
"socket": {
5050
"host": "10.160.68.75",
5151
"port": 6378,

test/redis-adapter.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe("redis-adapter test", () => {
7373
expect(redis.createClient.mock.calls[0]).toMatchInlineSnapshot(`
7474
[
7575
{
76-
"pingInterval": 300000,
76+
"pingInterval": 240000,
7777
"socket": {
7878
"host": "localhost",
7979
"port": 6379,

0 commit comments

Comments
 (0)