fix api response time

main
cahe 2 years ago
parent f141857272
commit e55d90202c

@ -49,7 +49,7 @@ spec:
- name: app - name: app
args: args:
- '/bin/python3' - '/bin/python3'
- '/app/app2.py' - '/app/app.py'
readinessProbe: readinessProbe:
initialDelaySeconds: 10 initialDelaySeconds: 10
timeoutSeconds: 10 timeoutSeconds: 10
@ -88,7 +88,7 @@ data:
class GetHandler(BaseHTTPRequestHandler): class GetHandler(BaseHTTPRequestHandler):
def do_GET(self): def do_GET(self):
sleep(5) sleep(10)
x = self.wfile.write x = self.wfile.write
self.send_response(200) self.send_response(200)
self.send_header("Content-type", "text/html") self.send_header("Content-type", "text/html")

Loading…
Cancel
Save