[4.03.20] Probes removed due to threads not running in parallel
This commit is contained in:
parent
4792a82e4b
commit
424dc2d383
@ -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:
|
||||
|
||||
@ -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()
|
||||
for i in range(len(currencies)):
|
||||
Thread(target=callCollector, args=[currencies[i]]).start()
|
||||
Loading…
x
Reference in New Issue
Block a user