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
Milestone

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

@github-project-automation github-project-automation bot moved this to 📋 Backlog in Mirror Node Feb 17, 2025
@steven-sheehy steven-sheehy moved this from 📋 Backlog to 🏃‍♀ Sprint backlog in Mirror Node Feb 17, 2025
@steven-sheehy steven-sheehy added this to the 0.125.0 milestone Feb 17, 2025
@rbarker-dev rbarker-dev moved this to 🏃‍♀ Sprint backlog in Mirror Node Test - DO NOT USE Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🏃‍♀ Sprint backlog
Development

No branches or pull requests

2 participants