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

Implement Gradual Rollout for Modularized Transaction Execution #10366

Open
kselveliev opened this issue Feb 12, 2025 · 0 comments
Open

Implement Gradual Rollout for Modularized Transaction Execution #10366

kselveliev opened this issue Feb 12, 2025 · 0 comments
Labels

Comments

@kselveliev
Copy link
Contributor

Problem

We need to introduce a gradual rollout mechanism for routing transactions between mirrorEvmTxProcessor.execute(params, estimatedGas) and transactionExecutionService.execute(params, estimatedGas, gasUsedCounter). Currently, the routing is determined by the mirrorNodeEvmProperties.isModularizedServices() flag, which acts as a switch.

To enable a progressive deployment strategy, we will introduce a percentage-based configuration that allows for gradual adoption of the new execution flow.

Solution

Current Flow

HederaEvmTransactionProcessingResult result;
if (!mirrorNodeEvmProperties.isModularizedServices()) {
    result = mirrorEvmTxProcessor.execute(params, estimatedGas);
} else {
    result = transactionExecutionService.execute(params, estimatedGas, gasUsedCounter);
}

Introduce a new configuration flag:
(Example) mirrorNodeEvmProperties.transactionExecutionSplitPercentage (double, range 0.0 - 1.0)
This percentage will define the probability of using the new flow (transactionExecutionService.execute).
Example Configuration

  • transactionExecutionSplitPercentage = 0.2 → 80% of requests go to the old flow, 20% to the new.
  • transactionExecutionSplitPercentage = 0.5 → 50% of requests go to each.
  • transactionExecutionSplitPercentage = 1.0 → 100% of requests use the new flow.

Alternatives

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant