Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Update default discovery and refresh config values (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
wennmo committed Nov 17, 2017
1 parent 5eef28b commit 8c05a99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const logger = require('./logger/Logger').get();
const defaultMiraApiPort = 9100;
const defaultEngineAPIPort = 9076;
const defaultEngineMetricsPort = 9090;
const defaultEngineDiscoveryRefreshRate = 1000;
const defaultEngineHealthRefreshRate = 5000;
const defaultEngineDiscoveryRefreshRate = 10000;
const defaultEngineHealthRefreshRate = 30000;
const defaultKubernetesProxyPort = 8001;
const defaultDiscoveryLabel = 'qix-engine';
const defaultEngineAPIPortLabel = 'qix-engine-api-port';
Expand Down
3 changes: 3 additions & 0 deletions test/component/kubernetes/component-kubernetes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const specData = require('../../test-data/KubernetesClient.spec.data.json');
const sleep = require('../../test-utils/sleep');
const request = require('supertest');

process.env.MIRA_ENGINE_DISCOVERY_REFRESH_RATE = 1000;
process.env.MIRA_ENGINE_HEALTH_REFRESH_RATE = 1000;

describe('Mira in kubernetes mode', () => {
let app;

Expand Down
2 changes: 2 additions & 0 deletions test/component/local/component-local-two-engines.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const request = require('supertest');
const sleep = require('../../test-utils/sleep');

process.env.DOCKER_HOST = 'http://localhost:8001';
process.env.MIRA_ENGINE_DISCOVERY_REFRESH_RATE = 1000;
process.env.MIRA_ENGINE_HEALTH_REFRESH_RATE = 1000;

describe('Mira in local docker mode with two engines', () => {
let app;
Expand Down
2 changes: 2 additions & 0 deletions test/component/swarm/component-swarm.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const specData = require('../../test-data/SwarmDockerClient.spec.data.json');
const sleep = require('../../test-utils/sleep');

process.env.DOCKER_HOST = 'http://localhost:8001';
process.env.MIRA_ENGINE_DISCOVERY_REFRESH_RATE = 1000;
process.env.MIRA_ENGINE_HEALTH_REFRESH_RATE = 1000;

describe('Mira in docker swarm mode', () => {
let app;
Expand Down

0 comments on commit 8c05a99

Please sign in to comment.