Skip to content

Commit 94ef137

Browse files
committed
change configuration name
1 parent ba1517d commit 94ef137

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hkube_python_wrapper/config/config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ def getBoolEnv(name, defaultValue):
1616
"host": os.environ.get('WORKER_SOCKET_HOST', "127.0.0.1"),
1717
"protocol": os.environ.get('WORKER_SOCKET_PROTOCOL', "ws"),
1818
"url": os.environ.get('WORKER_SOCKET_URL', None),
19-
"encoding": os.environ.get('WORKER_ALGORITHM_ENCODING', 'bson'),
20-
"delay": getIntEnv('WORKER_TOLERABLE_DELAY',1500)
19+
"encoding": os.environ.get('WORKER_ALGORITHM_ENCODING', 'bson')
2120
}
2221
discovery = {
2322
"host": os.environ.get('POD_IP', '127.0.0.1'),
2423
"port": os.environ.get('DISCOVERY_PORT', 9020),
2524
"encoding": os.environ.get('DISCOVERY_ENCODING', 'msgpack'),
2625
"enable": getBoolEnv('DISCOVERY_ENABLE', 'True'),
2726
"timeout": getIntEnv('DISCOVERY_TIMEOUT', 10000),
27+
"delay": getIntEnv('TOLERABLE_DELAY_MS',10),
2828
"networkTimeout": getIntEnv('DISCOVERY_NETWORK_TIMEOUT', 1000),
2929
"maxCacheSize": getIntEnv('DISCOVERY_MAX_CACHE_SIZE', 400),
3030
"num_threads": getIntEnv('DISCOVERY_SERVER_NUM_THREADS', 5),
3131
"num_ping_threads": getIntEnv('DISCOVERY_SERVER_NUM_PING_THREADS', 5),
3232
"servingReportInterval": getIntEnv('DISCOVERY_SERVING_REPORT_INTERVAL', 5000),
3333
"streaming": {
34-
"messagesMemoryBuff": getIntEnv('STREAMING_MAX_BUFFER_MB', 10),
34+
"messagesMemoryBuff": getIntEnv('STREAMING_MAX_BUFFER_MB', 1500),
3535
"port": os.environ.get('STREAMING_DISCOVERY_PORT', 9022),
3636
"statisticsInterval": os.environ.get('STREAMING_STATISTICS_INTERVAL', 2),
3737
"stateful": getBoolEnv('STREAMING_STATEFUL', 'True')

hkube_python_wrapper/wrapper/algorunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def _init(self, options):
343343

344344
def _discovery_update(self, discovery):
345345
log.debug('Got discovery update {discovery}', discovery=discovery)
346-
messageListenerConfig = {'encoding': config.discovery['encoding'],'delay':config.socket['delay']}
346+
messageListenerConfig = {'encoding': config.discovery['encoding'],'delay':config.discovery['delay']}
347347
self.streamingManager.setupStreamingListeners(
348348
messageListenerConfig, discovery, self._job.nodeName)
349349

0 commit comments

Comments
 (0)