From 424dc2d3837318949b3834a763852ca07b2401e5 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Wed, 4 Mar 2020 23:20:49 +0000 Subject: [PATCH] [4.03.20] Probes removed due to threads not running in parallel --- configuration/kubernetes/deployment.yaml | 36 ++++++++++++------------ src/main.py | 6 ++-- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/configuration/kubernetes/deployment.yaml b/configuration/kubernetes/deployment.yaml index 1299c12..7a068fa 100644 --- a/configuration/kubernetes/deployment.yaml +++ b/configuration/kubernetes/deployment.yaml @@ -64,24 +64,24 @@ spec: ports: - containerPort: 9090 name: RESOURCE_NAME - livenessProbe: - httpGet: - path: /health - port: 5000 - initialDelaySeconds: 30 - periodSeconds: 30 - timeoutSeconds: 1 - successThreshold: 1 - failureThreshold: 3 - readinessProbe: - httpGet: - port: 5000 - path: /readiness - initialDelaySeconds: 30 - periodSeconds: 5 - timeoutSeconds: 1 - successThreshold: 1 - failureThreshold: 10 +# livenessProbe: +# httpGet: +# path: /health +# port: 5000 +# initialDelaySeconds: 30 +# periodSeconds: 30 +# timeoutSeconds: 1 +# successThreshold: 1 +# failureThreshold: 3 +# readinessProbe: +# httpGet: +# port: 5000 +# path: /readiness +# initialDelaySeconds: 30 +# periodSeconds: 5 +# timeoutSeconds: 1 +# successThreshold: 1 +# failureThreshold: 10 imagePullPolicy: Always resources: requests: diff --git a/src/main.py b/src/main.py index c76d1ff..a74e9f4 100644 --- a/src/main.py +++ b/src/main.py @@ -16,10 +16,10 @@ def callProbes(): if __name__=='__main__': - Thread(target=callProbes).start() + # Thread(target=callProbes).start() # Dynamically create new child for each currency currencies = [ "btc_usd" ] - # for i in range(len(currencies)): - # Thread(target=callCollector, args=[currencies[i]]).start() \ No newline at end of file + for i in range(len(currencies)): + Thread(target=callCollector, args=[currencies[i]]).start() \ No newline at end of file