From 68a8fee73c9326258d2bff1d11bebe7c8e2b256f Mon Sep 17 00:00:00 2001 From: ra0x3 Date: Wed, 6 Dec 2023 08:36:31 -0500 Subject: [PATCH 1/2] chore: update deployment start --- .../fuel-indexer/templates/fuel-indexer-deployment.yaml | 4 +++- helm/fuel-indexer/templates/deployment.yaml | 4 +++- packages/fuel-indexer-benchmarks/src/bin/qa.rs | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/deployment/charts/fuel-indexer/templates/fuel-indexer-deployment.yaml b/deployment/charts/fuel-indexer/templates/fuel-indexer-deployment.yaml index 195f46590..622b3addf 100644 --- a/deployment/charts/fuel-indexer/templates/fuel-indexer-deployment.yaml +++ b/deployment/charts/fuel-indexer/templates/fuel-indexer-deployment.yaml @@ -60,7 +60,9 @@ spec: - "--replace-indexer" - "--accept-sql-queries" - "--block-page-size" - - "10" + - "30" + - "--client-request-delay" + - "1" env: - name: POSTGRES_PASSWORD valueFrom: diff --git a/helm/fuel-indexer/templates/deployment.yaml b/helm/fuel-indexer/templates/deployment.yaml index ebdeca869..270024d79 100644 --- a/helm/fuel-indexer/templates/deployment.yaml +++ b/helm/fuel-indexer/templates/deployment.yaml @@ -71,7 +71,9 @@ spec: - "--replace-indexer" - "--accept-sql-queries" - "--block-page-size" - - "10" + - "30" + - "--client-request-delay" + - "1" envFrom: - configMapRef: name: fuel-indexer diff --git a/packages/fuel-indexer-benchmarks/src/bin/qa.rs b/packages/fuel-indexer-benchmarks/src/bin/qa.rs index 7b0f3a7e7..530d354f2 100644 --- a/packages/fuel-indexer-benchmarks/src/bin/qa.rs +++ b/packages/fuel-indexer-benchmarks/src/bin/qa.rs @@ -542,7 +542,6 @@ async fn main() { .arg("--fuel-node-port") .arg("80") .arg("--replace-indexer") - .arg("--allow-non-sequential-blocks") .arg("--postgres-host") .arg(&postgres_host) .arg("--postgres-port") @@ -551,6 +550,10 @@ async fn main() { .arg(&postgres_user) .arg("--postgres-database") .arg(&postgres_db) + .arg("--client-request-delay") + .arg("1") + .arg("--block-page-size") + .arg("30") .spawn() .unwrap(); From ccf1fe071e82e5ca6274b54d2310f3393f626320 Mon Sep 17 00:00:00 2001 From: ra0x3 Date: Wed, 6 Dec 2023 08:45:45 -0500 Subject: [PATCH 2/2] bump block page size --- .../charts/fuel-indexer/templates/fuel-indexer-deployment.yaml | 2 +- helm/fuel-indexer/templates/deployment.yaml | 2 +- packages/fuel-indexer-benchmarks/src/bin/qa.rs | 3 ++- scripts/docker-compose.yaml | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/deployment/charts/fuel-indexer/templates/fuel-indexer-deployment.yaml b/deployment/charts/fuel-indexer/templates/fuel-indexer-deployment.yaml index 622b3addf..e7bc3d8a3 100644 --- a/deployment/charts/fuel-indexer/templates/fuel-indexer-deployment.yaml +++ b/deployment/charts/fuel-indexer/templates/fuel-indexer-deployment.yaml @@ -60,7 +60,7 @@ spec: - "--replace-indexer" - "--accept-sql-queries" - "--block-page-size" - - "30" + - "50" - "--client-request-delay" - "1" env: diff --git a/helm/fuel-indexer/templates/deployment.yaml b/helm/fuel-indexer/templates/deployment.yaml index 270024d79..896141dd9 100644 --- a/helm/fuel-indexer/templates/deployment.yaml +++ b/helm/fuel-indexer/templates/deployment.yaml @@ -71,7 +71,7 @@ spec: - "--replace-indexer" - "--accept-sql-queries" - "--block-page-size" - - "30" + - "50" - "--client-request-delay" - "1" envFrom: diff --git a/packages/fuel-indexer-benchmarks/src/bin/qa.rs b/packages/fuel-indexer-benchmarks/src/bin/qa.rs index 530d354f2..673e889a8 100644 --- a/packages/fuel-indexer-benchmarks/src/bin/qa.rs +++ b/packages/fuel-indexer-benchmarks/src/bin/qa.rs @@ -542,6 +542,7 @@ async fn main() { .arg("--fuel-node-port") .arg("80") .arg("--replace-indexer") + .arg("--allow-non-sequential-blocks") .arg("--postgres-host") .arg(&postgres_host) .arg("--postgres-port") @@ -553,7 +554,7 @@ async fn main() { .arg("--client-request-delay") .arg("1") .arg("--block-page-size") - .arg("30") + .arg("50") .spawn() .unwrap(); diff --git a/scripts/docker-compose.yaml b/scripts/docker-compose.yaml index 317c08f43..f10ed7ab4 100644 --- a/scripts/docker-compose.yaml +++ b/scripts/docker-compose.yaml @@ -17,7 +17,7 @@ services: start_period: 80s fuel-indexer: image: ghcr.io/fuellabs/fuel-indexer:latest - command: bash -c "sleep 2 && ./fuel-indexer run --network beta-4 --postgres-host postgres --postgres-password postgres --web-api-host 0.0.0.0 --run-migrations" + command: bash -c "sleep 2 && ./fuel-indexer run --network beta-4 --postgres-host postgres --postgres-password postgres --web-api-host 0.0.0.0 --run-migrations --client-request-delay 1 --block-page-size 50" ports: - "29987:29987" volumes: