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

migrate blast v3/v4 subgraphs to new account #1031

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

mzywang
Copy link
Collaborator

@mzywang mzywang commented Feb 24, 2025

Alchemy is migrating a set of its subgraphs to a new account to split the indexing load. We need to migrate the v3/v4 subgraphs in routing to query from the new subgraph. We are starting with blast as it is one of the lower-traffic chains. Follow-up PRs will be filed for the remaining chains.

I added a new secret to the Pipelines account, and made sure to update the ACL so that the routing account will be able to see it.

This PR also removes the decentralized API key as it didn't look to be used anymore.

Tested locally:
V3 Logs:

-25T18:53:06.559Z","v":0}
{
  "name": "RoutingLambda",
  "hostname": "169.254.75.251",
  "pid": 11,
  "level": 30,
  "msg": "Got 3125 V3 pools from the subgraph. 95 after filtering",
  "time": "2025-02-25T18:53:06.970Z",
  "v": 0
}
{
  "name": "RoutingLambda",
  "hostname": "169.254.75.251",
  "pid": 11,
  "level": 30,
  "msg": "Got 95 V3 pools from the subgraph for 81457. Saving to poolCacheGzip.json-81457-V3",
  "time": "2025-02-25T18:53:06.970Z",
  "v": 0
}
{
  "name": "RoutingLambda",
  "hostname": "169.254.75.251",
  "pid": 11,
  "level": 30,
  "result": {
    "Expiration": "expiry-date=\"Sat, 24 Feb 2035 00:00:00 GMT\", rule-id=\"MGRmMzJjNDgtMjA3Yi00ODAzLWE1MjctNzk4ZDQ1YTgyYjFl\"",
    "ETag": "\"74d6056f08a99ef696600ce76394f3ca\"",
    "ServerSideEncryption": "AES256"
  },
  "msg": "Done V3 for 81457",
  "time": "2025-02-25T18:53:07.104Z",
  "v": 0
}
{
  "name": "RoutingLambda",
  "hostname": "169.254.75.251",
  "pid": 11,
  "level": 30,
  "msg": "Successfully cached 81457 V3 pools to S3 bucket routingapistack-routingca-poolcachebucket3c1337d0e-zustlam1u50d",
  "time": "2025-02-25T18:53:07.104Z",
  "v": 0
}
{
  "name": "RoutingLambda",
  "hostname": "169.254.75.251",
  "pid": 11,
  "level": 30,
  "msg": "compression ratio for 81457 V3 pool file is 26332:6800",
  "time": "2025-02-25T18:53:07.104Z",
  "v": 0
}

V4 Logs:

{
  "name": "RoutingLambda",
  "hostname": "169.254.46.109",
  "pid": 11,
  "level": 30,
  "msg": "Got 7 V4 pools from the subgraph. 7 after filtering",
  "time": "2025-02-25T18:54:32.830Z",
  "v": 0
}
{
  "name": "RoutingLambda",
  "hostname": "169.254.46.109",
  "pid": 11,
  "level": 30,
  "msg": "Got 7 V4 pools from the subgraph for 81457. Saving to poolCacheGzip.json-81457-V4",
  "time": "2025-02-25T18:54:32.831Z",
  "v": 0
}
{
  "name": "RoutingLambda",
  "hostname": "169.254.46.109",
  "pid": 11,
  "level": 30,
  "result": {
    "Expiration": "expiry-date=\"Sat, 24 Feb 2035 00:00:00 GMT\", rule-id=\"MGRmMzJjNDgtMjA3Yi00ODAzLWE1MjctNzk4ZDQ1YTgyYjFl\"",
    "ETag": "\"87788015cb2c21c5dab58a98050cf469\"",
    "ServerSideEncryption": "AES256"
  },
  "msg": "Done V4 for 81457",
  "time": "2025-02-25T18:54:32.905Z",
  "v": 0
}
{
  "name": "RoutingLambda",
  "hostname": "169.254.46.109",
  "pid": 11,
  "level": 30,
  "msg": "Successfully cached 81457 V4 pools to S3 bucket routingapistack-routingca-poolcachebucket3c1337d0e-zustlam1u50d",
  "time": "2025-02-25T18:54:32.905Z",
  "v": 0
}
{
  "name": "RoutingLambda",
  "hostname": "169.254.46.109",
  "pid": 11,
  "level": 30,
  "msg": "compression ratio for 81457 V4 pool file is 2621:658",
  "time": "2025-02-25T18:54:32.905Z",
  "v": 0
}

Copy link
Collaborator Author

mzywang commented Feb 24, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@mzywang mzywang marked this pull request as ready for review February 25, 2025 18:56
@mzywang mzywang requested review from jsy1218 and xrsv February 25, 2025 18:56
@graphite-app graphite-app bot requested review from a team and cgkol February 25, 2025 18:56
Copy link

graphite-app bot commented Feb 25, 2025

Graphite Automations

"Request reviewers once CI passes on routing-api repo" took an action on this PR • (02/25/25)

1 assignee was added and 5 reviewers were added to this PR based on Siyu Jiang (See-You John)'s automation.

Copy link
Member

@jsy1218 jsy1218 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add ALCHEMY_QUERY_KEY_2 into the README

@mzywang mzywang force-pushed the 02-24-migrate_blast_v3_v4_subgraphs_to_new_account branch from 120f309 to 4fced08 Compare February 25, 2025 21:24
@mzywang
Copy link
Collaborator Author

mzywang commented Feb 25, 2025

@jsy1218 i also updated the 1pass env entry for routing api

@mzywang mzywang merged commit 25261a1 into main Feb 25, 2025
8 checks passed
@mzywang mzywang deleted the 02-24-migrate_blast_v3_v4_subgraphs_to_new_account branch February 25, 2025 21:51
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.

3 participants