Skip to content

Commit

Permalink
Deploy separation of indexstar cascade backend on dev
Browse files Browse the repository at this point in the history
Fix client timeout to be maximum of streamin/nonstreaming timeout.

Reduce non-streaming timeout to 2 seconds in order to reduce downstream
timeouts for clients. If a backend is slower than 2 seconds it is
already too slow and users should use streaming response instead.

See:
 - ipni/indexstar#87
  • Loading branch information
masih committed Feb 23, 2023
1 parent 38a220f commit 7f6cf0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
- '--backends=http://cali-indexer:3000/'
- '--backends=http://ago-indexer:3000/'
- '--backends=http://dhstore.internal.dev.cid.contact/'
- '--backends=http://caskadht.internal.dev.cid.contact/'
- '--cascadeBackends=http://caskadht.internal.dev.cid.contact/'
env:
# Increase maximum accepted request body to 1 MiB in order to allow batch finds requests
# by the `provider verify-ingest` CLI command.
Expand All @@ -30,9 +30,9 @@ spec:
- name: SERVER_CASCADE_LABELS
value: 'ipfs-dht'
- name: SERVER_HTTP_CLIENT_TIMEOUT
value: '10s'
value: '30s'
- name: SERVER_RESULT_MAX_WAIT
value: '5s'
value: '2s'
- name: SERVER_RESULT_STREAM_MAX_WAIT
value: '30s'
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ replicas:
images:
- name: indexstar
newName: 407967248065.dkr.ecr.us-east-2.amazonaws.com/indexstar/indexstar
newTag: 20230222104529-191abd3d2533e420693c73e3659edb8db1e01fff
newTag: 20230223161918-5ab5f8f5d060c4af169c9964b9eeb622b03b0e5a

0 comments on commit 7f6cf0c

Please sign in to comment.