Skip to content
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

fix: increase default number of proving agents #6146

Merged
merged 4 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions yarn-project/end-to-end/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ E2E_COMPOSE_TEST:
ARG compose_file=./scripts/docker-compose.yml
ARG debug="aztec:*"
ARG EARTHLY_TARGET_NAME
ARG prover_agents=10
LOCALLY
ENV TEST=$test
ENV DEBUG=$debug
ENV PROVER_AGENTS=$prover_agents
LET project_name=$(echo $test | sed 's/\./_/g')
IF docker compose > /dev/null 2>&1
LET CMD="docker compose"
Expand Down
3 changes: 3 additions & 0 deletions yarn-project/prover-client/src/prover-pool/prover-pool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type ProvingJobSource } from '@aztec/circuit-types';
import { sleep } from '@aztec/foundation/sleep';
import { type SimulationProvider } from '@aztec/simulator';

import { mkdtemp } from 'fs/promises';
Expand Down Expand Up @@ -33,6 +34,8 @@ export class ProverPool {

for (const agent of this.agents) {
agent.start(source);
// stagger that start of each agent to avoid contention
await sleep(10);
}
}

Expand Down
4 changes: 2 additions & 2 deletions yarn-project/prover-client/src/tx-prover/tx-prover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ export class TxProver implements ProverClient {
throw new Error();
}

pool = ProverPool.nativePool(config, config.proverAgents, 10);
pool = ProverPool.nativePool(config, config.proverAgents, 50);
} else {
pool = ProverPool.testPool(simulationProvider, config.proverAgents, 10);
pool = ProverPool.testPool(simulationProvider, config.proverAgents, 50);
}

const prover = new TxProver(worldStateSynchronizer, getVerificationKeys(), pool);
Expand Down
Loading