-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce stream-server delay if Continued: 0
is passed
#130
Comments
Will require a change to stream-server to use, say, 250 ms instead of 3 seconds if https://github.com/zotero/stream-server/blob/7e2e57d49ad300dd595ab9e239afe908525097b4/server.js#L85 Why not 0? Because we do want to account for the possibility of Aurora replica lag:
But PHP + Redis + stream server + 250 ms + latency to user + client kicking of a new sync is probably safe… |
The continued property in the dataserver is set when passed there's a header passed by the client. I assumed the purpose of this variable is to tell the streaming server that there are more messages coming after this one when the notifications are being sent. |
Sorry, should've given you more context here. It's the client that communicates whether there are more requests coming, with either The clients don't yet do this, so you can't test with an existing client. We'll need to modify the sync logic in the clients to do this, but that's more complicated and we'll do it separately. |
I see! Yes, I was missing some context here. I will keep only the PR for the streaming server and cancel one for the dataserver |
When a message has continued=false, delay is only 250ms Increase global-topic delays
When a message has continued=false, delay is only 250ms Increase global-topic delays
When a message has continued=false, delay is only 250ms Increase global-topic delays
patch: Updated CI patch: remove comments from dataserver Dockerfile patch: updated elasticsearch to 8.10.2 patch: Updated README.md feat: Directrories restructure patch: Addresses Issue zotero/dataserver#130 When a message has continued=false, delay is only 250ms Increase global-topic delays feat: updated create-user.sh init-mysql.sh as per latest dataserver update changes patch: elasticsearch logging verbosity to WARN Revert "Revert "Fix init-mysql.sh according to new schemas"" This reverts commit b9627b3. patch: remove comments from ds.Dockerfile patch 338c626ea3f252115837def54415a67df73b6f4e Return `Content-Type: application/zip` from S3 for compressed files We were returning the attachment file's content type instead of indicating that the response itself was a ZIP file. https://groups.google.com/g/zotero-dev/c/ZS7o5ymitFw/m/3RN6VxxlAQAJ a649154d4abbb4e39e331998eb5cd0c8bdeb71d3 Fix storage usage calculation for users with >1 group on a shard When we switched to `shardLibraries.storageUsage` and removed `SUM()`, `WITH ROLLUP` stopped counting all but one group per shard. 82540c48a99218aa7b5c9565957accece98e04ee Use MySQL's `new.` syntax in storageFileItems ON DUPLICATE KEY UPDATE patch: CI README.md obsolete patch: Added multistaging to dataserver dockerfile patch: update zotero client to 6.0.27 Github Actions Update Submodule client/zotero-client patch: Updated stream-server submodule Github Actions Update Submodule dataserver patch: branches for submodules patch: change version patch: Updated CI patch: apache permissions Revert "Fix init-mysql.sh according to new schemas" This reverts commit ef3eef7. patch: Add user. Mariadb syntax. Email and library ID commit 6f64386 Author: piernov <piernov@piernov.org> Date: Thu Nov 17 15:41:43 2022 +0100 Fix init-mysql.sh according to new schemas patch: syncDeleteLogKeys and tags to utf8mb4 Update create-user.sh for newer schemas and add custom library_id patch: typo in port definition for client.Dockerfile. Improve README.md patch: updated GKE, microk8s charts patch: Updated README.md Added Credits patch: updated client build to switch between linux/windows and to define api and stream server url's. patch: k8s updated GKE terraform, helm-chart patch: Updated README.md patch: Added SSL Certificate Manager. Updated Charts patch: Updated Helm Charts patch: Restructured secrets. Created Helm Charts patch: Added init.sh as postsart script into dataserver pod patch: removed CPU limits. Increased data storage. Updated terraform patch: client build update Pulled down update to client submodules patch: Connect from dataserver to mini via internal ip. Structure persistent volume names patch: dataserver patch: k8s updated liveness probes to fix GKE Ingress feat: For localhost server/client access minio via 10.5.5.1:9000. Removed rinetd. Update Zend/Service/Amazon/S3.php patch: .vscode to ignore patch: update k8s manifests patch: update k8s manifests feat: move dataserver ip/host config to .env. move stream server config into build fix: updated config.inc.php patch: configmap streamserver patch: Split manifests for microk8s and GKE patch: Ingress for GKE patch: dataserver config split between microk8s and cloud k8s patch: client for k8s patch: fix minio manifest volume issue patch: fix db manivfest volume issue patch: ignore kubeconfig patch: Updated terraform patch: Updated terraform patch: updated images from dockerhub. Updated terraform patch: refactor folders patch: introduced terraform patch: k8s refactor yaml names patch: k8s Added helm charts fix: client k8s fix fix: refactor miniomc entrypoint and env patch: k8s update folder structure. Added miniomc. update objects patch: Added priorityclasses fix: restart rinetd in case of exit patch: k8s update streamserver patch: k8s client setup patch: k8s objects added ingress, lb patch: k8s objects patch: k8s objects for dataserver fix: fix env variables for kubernetes. Remove duplicate env variables from entrypoint.sh patch: k8s objects for for elasticsearch updated fix: Added prod, dev docker-compose.yml versions, added elasticsearch RAM limit feat: copy dataserver during image buid and do not mount as a volume Reference minio/minio#5469 fix storage bugs (cherry picked from commit 404ded2) patch: k8s objects for tinymceclean patch: k8s objects for streamserver; for redis updated patch: k8s objects for localstack; for phpmyadmin updated; for db updated patch: k8s objects for elasticsearch patch: k8s objects for phpmyadmin, memcached; for db updated patch: k8s objects for redis patch: k8s objects for mariadb; for minio pod update fix: fix .gitignore fix: fix docker compose CI feat: Added 1. dev, prod docker compose. 2. docker compose build CI workflow. 3. pre-built images configuration patch: k8s objects for minio pod workable patch: k8s objects for minio partial
patch: Updated CI patch: remove comments from dataserver Dockerfile patch: updated elasticsearch to 8.10.2 patch: Updated README.md feat: Directrories restructure patch: Addresses Issue zotero/dataserver#130 When a message has continued=false, delay is only 250ms Increase global-topic delays feat: updated create-user.sh init-mysql.sh as per latest dataserver update changes patch: elasticsearch logging verbosity to WARN Revert "Revert "Fix init-mysql.sh according to new schemas"" This reverts commit b9627b3. patch: remove comments from ds.Dockerfile patch 338c626ea3f252115837def54415a67df73b6f4e Return `Content-Type: application/zip` from S3 for compressed files We were returning the attachment file's content type instead of indicating that the response itself was a ZIP file. https://groups.google.com/g/zotero-dev/c/ZS7o5ymitFw/m/3RN6VxxlAQAJ a649154d4abbb4e39e331998eb5cd0c8bdeb71d3 Fix storage usage calculation for users with >1 group on a shard When we switched to `shardLibraries.storageUsage` and removed `SUM()`, `WITH ROLLUP` stopped counting all but one group per shard. 82540c48a99218aa7b5c9565957accece98e04ee Use MySQL's `new.` syntax in storageFileItems ON DUPLICATE KEY UPDATE patch: CI README.md obsolete patch: Added multistaging to dataserver dockerfile patch: update zotero client to 6.0.27 Github Actions Update Submodule client/zotero-client patch: Updated stream-server submodule Github Actions Update Submodule dataserver patch: branches for submodules patch: change version patch: Updated CI patch: apache permissions Revert "Fix init-mysql.sh according to new schemas" This reverts commit ef3eef7. patch: Add user. Mariadb syntax. Email and library ID commit 6f64386 Author: piernov <piernov@piernov.org> Date: Thu Nov 17 15:41:43 2022 +0100 Fix init-mysql.sh according to new schemas patch: syncDeleteLogKeys and tags to utf8mb4 Update create-user.sh for newer schemas and add custom library_id patch: typo in port definition for client.Dockerfile. Improve README.md patch: updated GKE, microk8s charts patch: Updated README.md Added Credits patch: updated client build to switch between linux/windows and to define api and stream server url's. patch: k8s updated GKE terraform, helm-chart patch: Updated README.md patch: Added SSL Certificate Manager. Updated Charts patch: Updated Helm Charts patch: Restructured secrets. Created Helm Charts patch: Added init.sh as postsart script into dataserver pod patch: removed CPU limits. Increased data storage. Updated terraform patch: client build update Pulled down update to client submodules patch: Connect from dataserver to mini via internal ip. Structure persistent volume names patch: dataserver patch: k8s updated liveness probes to fix GKE Ingress feat: For localhost server/client access minio via 10.5.5.1:9000. Removed rinetd. Update Zend/Service/Amazon/S3.php patch: .vscode to ignore patch: update k8s manifests patch: update k8s manifests feat: move dataserver ip/host config to .env. move stream server config into build fix: updated config.inc.php patch: configmap streamserver patch: Split manifests for microk8s and GKE patch: Ingress for GKE patch: dataserver config split between microk8s and cloud k8s patch: client for k8s patch: fix minio manifest volume issue patch: fix db manivfest volume issue patch: ignore kubeconfig patch: Updated terraform patch: Updated terraform patch: updated images from dockerhub. Updated terraform patch: refactor folders patch: introduced terraform patch: k8s refactor yaml names patch: k8s Added helm charts fix: client k8s fix fix: refactor miniomc entrypoint and env patch: k8s update folder structure. Added miniomc. update objects patch: Added priorityclasses fix: restart rinetd in case of exit patch: k8s update streamserver patch: k8s client setup patch: k8s objects added ingress, lb patch: k8s objects patch: k8s objects for dataserver fix: fix env variables for kubernetes. Remove duplicate env variables from entrypoint.sh patch: k8s objects for for elasticsearch updated fix: Added prod, dev docker-compose.yml versions, added elasticsearch RAM limit feat: copy dataserver during image buid and do not mount as a volume Reference minio/minio#5469 fix storage bugs (cherry picked from commit 404ded2) patch: k8s objects for tinymceclean patch: k8s objects for streamserver; for redis updated patch: k8s objects for localstack; for phpmyadmin updated; for db updated patch: k8s objects for elasticsearch patch: k8s objects for phpmyadmin, memcached; for db updated patch: k8s objects for redis patch: k8s objects for mariadb; for minio pod update fix: fix .gitignore fix: fix docker compose CI feat: Added 1. dev, prod docker compose. 2. docker compose build CI workflow. 3. pre-built images configuration patch: k8s objects for minio pod workable patch: k8s objects for minio partial
patch: Updated CI patch: remove comments from dataserver Dockerfile patch: updated elasticsearch to 8.10.2 patch: Updated README.md feat: Directrories restructure patch: Addresses Issue zotero/dataserver#130 When a message has continued=false, delay is only 250ms Increase global-topic delays feat: updated create-user.sh init-mysql.sh as per latest dataserver update changes patch: elasticsearch logging verbosity to WARN Revert "Revert "Fix init-mysql.sh according to new schemas"" This reverts commit b9627b3. patch: remove comments from ds.Dockerfile patch 338c626ea3f252115837def54415a67df73b6f4e Return `Content-Type: application/zip` from S3 for compressed files We were returning the attachment file's content type instead of indicating that the response itself was a ZIP file. https://groups.google.com/g/zotero-dev/c/ZS7o5ymitFw/m/3RN6VxxlAQAJ a649154d4abbb4e39e331998eb5cd0c8bdeb71d3 Fix storage usage calculation for users with >1 group on a shard When we switched to `shardLibraries.storageUsage` and removed `SUM()`, `WITH ROLLUP` stopped counting all but one group per shard. 82540c48a99218aa7b5c9565957accece98e04ee Use MySQL's `new.` syntax in storageFileItems ON DUPLICATE KEY UPDATE patch: CI README.md obsolete patch: Added multistaging to dataserver dockerfile patch: update zotero client to 6.0.27 Github Actions Update Submodule client/zotero-client patch: Updated stream-server submodule Github Actions Update Submodule dataserver patch: branches for submodules patch: change version patch: Updated CI patch: apache permissions Revert "Fix init-mysql.sh according to new schemas" This reverts commit ef3eef7. patch: Add user. Mariadb syntax. Email and library ID commit 6f64386 Author: piernov <piernov@piernov.org> Date: Thu Nov 17 15:41:43 2022 +0100 Fix init-mysql.sh according to new schemas patch: syncDeleteLogKeys and tags to utf8mb4 Update create-user.sh for newer schemas and add custom library_id patch: typo in port definition for client.Dockerfile. Improve README.md patch: updated GKE, microk8s charts patch: Updated README.md Added Credits patch: updated client build to switch between linux/windows and to define api and stream server url's. patch: k8s updated GKE terraform, helm-chart patch: Updated README.md patch: Added SSL Certificate Manager. Updated Charts patch: Updated Helm Charts patch: Restructured secrets. Created Helm Charts patch: Added init.sh as postsart script into dataserver pod patch: removed CPU limits. Increased data storage. Updated terraform patch: client build update Pulled down update to client submodules patch: Connect from dataserver to mini via internal ip. Structure persistent volume names patch: dataserver patch: k8s updated liveness probes to fix GKE Ingress feat: For localhost server/client access minio via 10.5.5.1:9000. Removed rinetd. Update Zend/Service/Amazon/S3.php patch: .vscode to ignore patch: update k8s manifests patch: update k8s manifests feat: move dataserver ip/host config to .env. move stream server config into build fix: updated config.inc.php patch: configmap streamserver patch: Split manifests for microk8s and GKE patch: Ingress for GKE patch: dataserver config split between microk8s and cloud k8s patch: client for k8s patch: fix minio manifest volume issue patch: fix db manivfest volume issue patch: ignore kubeconfig patch: Updated terraform patch: Updated terraform patch: updated images from dockerhub. Updated terraform patch: refactor folders patch: introduced terraform patch: k8s refactor yaml names patch: k8s Added helm charts fix: client k8s fix fix: refactor miniomc entrypoint and env patch: k8s update folder structure. Added miniomc. update objects patch: Added priorityclasses fix: restart rinetd in case of exit patch: k8s update streamserver patch: k8s client setup patch: k8s objects added ingress, lb patch: k8s objects patch: k8s objects for dataserver fix: fix env variables for kubernetes. Remove duplicate env variables from entrypoint.sh patch: k8s objects for for elasticsearch updated fix: Added prod, dev docker-compose.yml versions, added elasticsearch RAM limit feat: copy dataserver during image buid and do not mount as a volume Reference minio/minio#5469 fix storage bugs (cherry picked from commit 404ded2) patch: k8s objects for tinymceclean patch: k8s objects for streamserver; for redis updated patch: k8s objects for localstack; for phpmyadmin updated; for db updated patch: k8s objects for elasticsearch patch: k8s objects for phpmyadmin, memcached; for db updated patch: k8s objects for redis patch: k8s objects for mariadb; for minio pod update fix: fix .gitignore fix: fix docker compose CI feat: Added 1. dev, prod docker compose. 2. docker compose build CI workflow. 3. pre-built images configuration patch: k8s objects for minio pod workable patch: k8s objects for minio partial
patch: Updated CI patch: remove comments from dataserver Dockerfile patch: updated elasticsearch to 8.10.2 patch: Updated README.md feat: Directrories restructure patch: Addresses Issue zotero/dataserver#130 When a message has continued=false, delay is only 250ms Increase global-topic delays feat: updated create-user.sh init-mysql.sh as per latest dataserver update changes patch: elasticsearch logging verbosity to WARN Revert "Revert "Fix init-mysql.sh according to new schemas"" This reverts commit b9627b3. patch: remove comments from ds.Dockerfile patch 338c626ea3f252115837def54415a67df73b6f4e Return `Content-Type: application/zip` from S3 for compressed files We were returning the attachment file's content type instead of indicating that the response itself was a ZIP file. https://groups.google.com/g/zotero-dev/c/ZS7o5ymitFw/m/3RN6VxxlAQAJ a649154d4abbb4e39e331998eb5cd0c8bdeb71d3 Fix storage usage calculation for users with >1 group on a shard When we switched to `shardLibraries.storageUsage` and removed `SUM()`, `WITH ROLLUP` stopped counting all but one group per shard. 82540c48a99218aa7b5c9565957accece98e04ee Use MySQL's `new.` syntax in storageFileItems ON DUPLICATE KEY UPDATE patch: CI README.md obsolete patch: Added multistaging to dataserver dockerfile patch: update zotero client to 6.0.27 Github Actions Update Submodule client/zotero-client patch: Updated stream-server submodule Github Actions Update Submodule dataserver patch: branches for submodules patch: change version patch: Updated CI patch: apache permissions Revert "Fix init-mysql.sh according to new schemas" This reverts commit ef3eef7. patch: Add user. Mariadb syntax. Email and library ID commit 6f64386 Author: piernov <piernov@piernov.org> Date: Thu Nov 17 15:41:43 2022 +0100 Fix init-mysql.sh according to new schemas patch: syncDeleteLogKeys and tags to utf8mb4 Update create-user.sh for newer schemas and add custom library_id patch: typo in port definition for client.Dockerfile. Improve README.md patch: updated GKE, microk8s charts patch: Updated README.md Added Credits patch: updated client build to switch between linux/windows and to define api and stream server url's. patch: k8s updated GKE terraform, helm-chart patch: Updated README.md patch: Added SSL Certificate Manager. Updated Charts patch: Updated Helm Charts patch: Restructured secrets. Created Helm Charts patch: Added init.sh as postsart script into dataserver pod patch: removed CPU limits. Increased data storage. Updated terraform patch: client build update Pulled down update to client submodules patch: Connect from dataserver to mini via internal ip. Structure persistent volume names patch: dataserver patch: k8s updated liveness probes to fix GKE Ingress feat: For localhost server/client access minio via 10.5.5.1:9000. Removed rinetd. Update Zend/Service/Amazon/S3.php patch: .vscode to ignore patch: update k8s manifests patch: update k8s manifests feat: move dataserver ip/host config to .env. move stream server config into build fix: updated config.inc.php patch: configmap streamserver patch: Split manifests for microk8s and GKE patch: Ingress for GKE patch: dataserver config split between microk8s and cloud k8s patch: client for k8s patch: fix minio manifest volume issue patch: fix db manivfest volume issue patch: ignore kubeconfig patch: Updated terraform patch: Updated terraform patch: updated images from dockerhub. Updated terraform patch: refactor folders patch: introduced terraform patch: k8s refactor yaml names patch: k8s Added helm charts fix: client k8s fix fix: refactor miniomc entrypoint and env patch: k8s update folder structure. Added miniomc. update objects patch: Added priorityclasses fix: restart rinetd in case of exit patch: k8s update streamserver patch: k8s client setup patch: k8s objects added ingress, lb patch: k8s objects patch: k8s objects for dataserver fix: fix env variables for kubernetes. Remove duplicate env variables from entrypoint.sh patch: k8s objects for for elasticsearch updated fix: Added prod, dev docker-compose.yml versions, added elasticsearch RAM limit feat: copy dataserver during image buid and do not mount as a volume Reference minio/minio#5469 fix storage bugs (cherry picked from commit 404ded2) patch: k8s objects for tinymceclean patch: k8s objects for streamserver; for redis updated patch: k8s objects for localstack; for phpmyadmin updated; for db updated patch: k8s objects for elasticsearch patch: k8s objects for phpmyadmin, memcached; for db updated patch: k8s objects for redis patch: k8s objects for mariadb; for minio pod update fix: fix .gitignore fix: fix docker compose CI feat: Added 1. dev, prod docker compose. 2. docker compose build CI workflow. 3. pre-built images configuration patch: k8s objects for minio pod workable patch: k8s objects for minio partial
patch: Updated CI patch: remove comments from dataserver Dockerfile patch: updated elasticsearch to 8.10.2 patch: Updated README.md feat: Directrories restructure patch: Addresses Issue zotero/dataserver#130 When a message has continued=false, delay is only 250ms Increase global-topic delays feat: updated create-user.sh init-mysql.sh as per latest dataserver update changes patch: elasticsearch logging verbosity to WARN Revert "Revert "Fix init-mysql.sh according to new schemas"" This reverts commit b9627b3. patch: remove comments from ds.Dockerfile patch 338c626ea3f252115837def54415a67df73b6f4e Return `Content-Type: application/zip` from S3 for compressed files We were returning the attachment file's content type instead of indicating that the response itself was a ZIP file. https://groups.google.com/g/zotero-dev/c/ZS7o5ymitFw/m/3RN6VxxlAQAJ a649154d4abbb4e39e331998eb5cd0c8bdeb71d3 Fix storage usage calculation for users with >1 group on a shard When we switched to `shardLibraries.storageUsage` and removed `SUM()`, `WITH ROLLUP` stopped counting all but one group per shard. 82540c48a99218aa7b5c9565957accece98e04ee Use MySQL's `new.` syntax in storageFileItems ON DUPLICATE KEY UPDATE patch: CI README.md obsolete patch: Added multistaging to dataserver dockerfile patch: update zotero client to 6.0.27 Github Actions Update Submodule client/zotero-client patch: Updated stream-server submodule Github Actions Update Submodule dataserver patch: branches for submodules patch: change version patch: Updated CI patch: apache permissions Revert "Fix init-mysql.sh according to new schemas" This reverts commit ef3eef7. patch: Add user. Mariadb syntax. Email and library ID commit 6f64386 Author: piernov <piernov@piernov.org> Date: Thu Nov 17 15:41:43 2022 +0100 Fix init-mysql.sh according to new schemas patch: syncDeleteLogKeys and tags to utf8mb4 Update create-user.sh for newer schemas and add custom library_id patch: typo in port definition for client.Dockerfile. Improve README.md patch: updated GKE, microk8s charts patch: Updated README.md Added Credits patch: updated client build to switch between linux/windows and to define api and stream server url's. patch: k8s updated GKE terraform, helm-chart patch: Updated README.md patch: Added SSL Certificate Manager. Updated Charts patch: Updated Helm Charts patch: Restructured secrets. Created Helm Charts patch: Added init.sh as postsart script into dataserver pod patch: removed CPU limits. Increased data storage. Updated terraform patch: client build update Pulled down update to client submodules patch: Connect from dataserver to mini via internal ip. Structure persistent volume names patch: dataserver patch: k8s updated liveness probes to fix GKE Ingress feat: For localhost server/client access minio via 10.5.5.1:9000. Removed rinetd. Update Zend/Service/Amazon/S3.php patch: .vscode to ignore patch: update k8s manifests patch: update k8s manifests feat: move dataserver ip/host config to .env. move stream server config into build fix: updated config.inc.php patch: configmap streamserver patch: Split manifests for microk8s and GKE patch: Ingress for GKE patch: dataserver config split between microk8s and cloud k8s patch: client for k8s patch: fix minio manifest volume issue patch: fix db manivfest volume issue patch: ignore kubeconfig patch: Updated terraform patch: Updated terraform patch: updated images from dockerhub. Updated terraform patch: refactor folders patch: introduced terraform patch: k8s refactor yaml names patch: k8s Added helm charts fix: client k8s fix fix: refactor miniomc entrypoint and env patch: k8s update folder structure. Added miniomc. update objects patch: Added priorityclasses fix: restart rinetd in case of exit patch: k8s update streamserver patch: k8s client setup patch: k8s objects added ingress, lb patch: k8s objects patch: k8s objects for dataserver fix: fix env variables for kubernetes. Remove duplicate env variables from entrypoint.sh patch: k8s objects for for elasticsearch updated fix: Added prod, dev docker-compose.yml versions, added elasticsearch RAM limit feat: copy dataserver during image buid and do not mount as a volume Reference minio/minio#5469 fix storage bugs (cherry picked from commit 404ded2) patch: k8s objects for tinymceclean patch: k8s objects for streamserver; for redis updated patch: k8s objects for localstack; for phpmyadmin updated; for db updated patch: k8s objects for elasticsearch patch: k8s objects for phpmyadmin, memcached; for db updated patch: k8s objects for redis patch: k8s objects for mariadb; for minio pod update fix: fix .gitignore fix: fix docker compose CI feat: Added 1. dev, prod docker compose. 2. docker compose build CI workflow. 3. pre-built images configuration patch: k8s objects for minio pod workable patch: k8s objects for minio partial
And update clients to pass
Continued: 0
when they know they have nothing else to upload.Requests with
Continued: 1
will wait longer (currently 30 seconds), while requests that don't specify will use the default debounce (currently 3 seconds)The text was updated successfully, but these errors were encountered: