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

[RPC Gateway] Enable auto fallback and recovery on Sepolia #625

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

rollingtumbling
Copy link
Contributor

@rollingtumbling rollingtumbling commented Apr 23, 2024

After the deployment of #583 and #629, we are ready to test auto fallback and recover in production.

The first chain we want to test is Sepolia because it's a testnet with small but meaningful amount of traffic. Even if we bring it down, the cost is still acceptable.

According to the prod alarm data, if we enable it for Sepolia, this is the only alarm that will possibly trigger: The latency alarm for Alchemy-Sepolia pair (Showing data from the last 24h, https://us-east-2.console.aws.amazon.com/cloudwatch/home?region=us-east-2#metricsV2?graph=~(metrics~(~(~(id~'expr_1~expression~'p50Latency))~(~'Uniswap~'RPC_GATEWAY_11155111_ALCHEMY_evaluated_latency_getBlockNumber~'Service~'RoutingAPI~(stat~'p50~id~'p50Latency~visible~false~unit~'None)))~view~'timeSeries~stacked~false~start~'-PT24H~end~'P0D~period~300~region~'us-east-2~title~'RoutingAPI-RpcGateway-LatencyAlarm-ChainId-11155111-Provider-ALCHEMY~annotations~(horizontal~(~(label~'expr_1*20*3e*3d*20150*20for*201*20datapoints*20within*205*20minutes~value~150)))))))

image.png

So this flip of alarm should make the provider switch between Alchemy (primary provider) and Infura (backup). We should be able to observe it from the "Provider selection for sepolia" graph in dashboard

There is a small concern that Alchemy couldn't handle the doubled traffic caused by this PR (50% => 100%, because of it becoming primary). However since the quote traffic on Sepolia is indeed very small, we don't really expect an issue there.

@rollingtumbling rollingtumbling force-pushed the 0423_sepolia_auto_fallback_recover branch from 355743b to 0707a08 Compare April 23, 2024 18:43
Base automatically changed from 0417_online_path_change to main April 23, 2024 20:14
@rollingtumbling rollingtumbling force-pushed the 0423_sepolia_auto_fallback_recover branch from 0707a08 to fa30c1b Compare April 24, 2024 16:27
@rollingtumbling rollingtumbling force-pushed the 0423_sepolia_auto_fallback_recover branch from fa30c1b to 53c093f Compare April 24, 2024 17:02
@rollingtumbling rollingtumbling merged commit 772b80d into main Apr 24, 2024
5 checks passed
@rollingtumbling rollingtumbling deleted the 0423_sepolia_auto_fallback_recover branch April 24, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants