Skip to content

Instantly share code, notes, and snippets.

@sophoah
Last active May 26, 2022 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sophoah/426fde68093f08ae6a627356f30d9b02 to your computer and use it in GitHub Desktop.
Save sophoah/426fde68093f08ae6a627356f30d9b02 to your computer and use it in GitHub Desktop.
harmony-ops

5% migration of S0 RPC traffic to getlogs

idea of the task is to redirect 5% of our RPC traffic to the offchain getlogs endpoint and measure the impacts it has on our harmony ecosystem

current DNS configuration

api.s0.t.hmny.io and api.harmony.one are currently configured as latency based split into different region/data center

when a region goes down, traffic will be redirected to another region/data center

proposed work

Latency based routing will be updated to CNANEs to the region/DC (not the actual endpoint)

ie : for region : Europe (Frankfurt) eu-fra.api.harmony.one or eu-fra.s0.t.hmny.io

2 weighted (5/95) CNAME pointing to the respective endpoint will then be created

risks and potential issue

the current getlogs endpoints backend is only located in the US AWS DC. 5% of the traffic might be responding slower than usual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment