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

feat: allow horizontal scalability of lighthouse prover #4347

Merged
merged 59 commits into from
Jun 9, 2023

Conversation

wanglonghong
Copy link
Contributor

@wanglonghong wanglonghong commented May 26, 2023

Description

Type of change

  • Docs change / dependency upgrade
  • Configuration / tooling changes
  • Refactoring
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires changes in customer code

High-level change(s) description - from the user's perspective

Related Issue(s)

Fixes

Related pull request(s)

@wanglonghong wanglonghong linked an issue May 26, 2023 that may be closed by this pull request
1 task
@wanglonghong wanglonghong marked this pull request as ready for review June 1, 2023 15:57
sanchaymittal
sanchaymittal previously approved these changes Jun 2, 2023
* ci: lambda subscriber

* ci: lambda subscriber

* chore: bump chain abstraction

* fix: update tf config for sequncer cname

* fix: sequencer http queue config update

* fix: add auto scaling to seq publisher

* fix: typo and seq health port config change

* ci: prover

---------

Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaVPCAccessExecutionRole"
}

module "network" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this

cidr_block = var.cidr_block
}

module "sgs" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this

@rhlsthrm rhlsthrm merged commit c732430 into main Jun 9, 2023
@rhlsthrm rhlsthrm deleted the feat/lh-prover-pub-sub branch June 9, 2023 11:04
rhlsthrm pushed a commit that referenced this pull request Jun 9, 2023
* feat: install amqplib

* build: fix block-scoped variable

* feat: make pub/sub

* feat: add cache

* fix: cache and config

* feat: mvp of mq consumer

* feat: lambda subscriber (#4372)

* ci: lambda subscriber

* ci: lambda subscriber

* chore: bump chain abstraction

* fix: update tf config for sequncer cname

* fix: sequencer http queue config update

* fix: add auto scaling to seq publisher

* fix: typo and seq health port config change

* ci: prover

---------





* chore: yarn

* ci: fix tf and build docker

* ci: always build lh

* ci: try adding package

* ci: secrets

* ci: fix lh config

* ci: fix mq

* test: missing functions and branches

* chore: Yarn lock

* chore: eslint

* ci: check the latest commit

* fix: index

* ci: ops

* feat: create a queue and binding on publisher side

* ci: bump memory

* feat: get event from process.argv

* fix: type

* chore: logging arg1 and arg2

* chore: move logging location

* chore: console

* chore: optional

* feat: decode base64 string

* fix: pass event param

* ci: change secret

* fix: decode properly

* ci: secret

* ci: secret

* ci: ops for lh prover

* ci: remove lighthouse lambda subscriber

* ci: var

* feat: implement message cache

* feat: update message cache per pair

* feat: store processed messages

* choe: print logs

* chore: remove console

* fix: use lighthouse directory

* fix: disable lh prover caching temporarily

* fix: update tf config for lh prover sub

* fix: make auto scaling more responsive to load

* fix: add lh redis config to main and staging tf

* Revert "fix: disable lh prover caching temporarily"

This reverts commit 8204f7a.

* fix: update config to connect lambda to redis

* lh prover in vpc

* fix: lh prover lambda network config

* fix: attach private subnets only

* ci: fix

* ci: ops

---------

Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Carlo Mazzaferro <carlo.mazzaferro@gmail.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>
rhlsthrm pushed a commit that referenced this pull request Jun 10, 2023
* feat: allow horizontal scalability of lighthouse prover (#4347)

* feat: install amqplib

* build: fix block-scoped variable

* feat: make pub/sub

* feat: add cache

* fix: cache and config

* feat: mvp of mq consumer

* feat: lambda subscriber (#4372)

* ci: lambda subscriber

* ci: lambda subscriber

* chore: bump chain abstraction

* fix: update tf config for sequncer cname

* fix: sequencer http queue config update

* fix: add auto scaling to seq publisher

* fix: typo and seq health port config change

* ci: prover

---------

Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>

* chore: yarn

* ci: fix tf and build docker

* ci: always build lh

* ci: try adding package

* ci: secrets

* ci: fix lh config

* ci: fix mq

* test: missing functions and branches

* chore: Yarn lock

* chore: eslint

* ci: check the latest commit

* fix: index

* ci: ops

* feat: create a queue and binding on publisher side

* ci: bump memory

* feat: get event from process.argv

* fix: type

* chore: logging arg1 and arg2

* chore: move logging location

* chore: console

* chore: optional

* feat: decode base64 string

* fix: pass event param

* ci: change secret

* fix: decode properly

* ci: secret

* ci: secret

* ci: ops for lh prover

* ci: remove lighthouse lambda subscriber

* ci: var

* feat: implement message cache

* feat: update message cache per pair

* feat: store processed messages

* choe: print logs

* chore: remove console

* fix: use lighthouse directory

* fix: disable lh prover caching temporarily

* fix: update tf config for lh prover sub

* fix: make auto scaling more responsive to load

* fix: add lh redis config to main and staging tf

* Revert "fix: disable lh prover caching temporarily"

This reverts commit 8204f7a.

* fix: update config to connect lambda to redis

* lh prover in vpc

* fix: lh prover lambda network config

* fix: attach private subnets only

* ci: fix

* ci: ops

---------

Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com>
Co-authored-by: Carlo Mazzaferro <carlo.mazzaferro@gmail.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>

* feat: batch size (#4458)

---------

Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Carlo Mazzaferro <carlo.mazzaferro@gmail.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>
rhlsthrm added a commit that referenced this pull request Jun 12, 2023
* feat: allow horizontal scalability of lighthouse prover (#4347)

* feat: install amqplib

* build: fix block-scoped variable

* feat: make pub/sub

* feat: add cache

* fix: cache and config

* feat: mvp of mq consumer

* feat: lambda subscriber (#4372)

* ci: lambda subscriber

* ci: lambda subscriber

* chore: bump chain abstraction

* fix: update tf config for sequncer cname

* fix: sequencer http queue config update

* fix: add auto scaling to seq publisher

* fix: typo and seq health port config change

* ci: prover

---------

Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>

* chore: yarn

* ci: fix tf and build docker

* ci: always build lh

* ci: try adding package

* ci: secrets

* ci: fix lh config

* ci: fix mq

* test: missing functions and branches

* chore: Yarn lock

* chore: eslint

* ci: check the latest commit

* fix: index

* ci: ops

* feat: create a queue and binding on publisher side

* ci: bump memory

* feat: get event from process.argv

* fix: type

* chore: logging arg1 and arg2

* chore: move logging location

* chore: console

* chore: optional

* feat: decode base64 string

* fix: pass event param

* ci: change secret

* fix: decode properly

* ci: secret

* ci: secret

* ci: ops for lh prover

* ci: remove lighthouse lambda subscriber

* ci: var

* feat: implement message cache

* feat: update message cache per pair

* feat: store processed messages

* choe: print logs

* chore: remove console

* fix: use lighthouse directory

* fix: disable lh prover caching temporarily

* fix: update tf config for lh prover sub

* fix: make auto scaling more responsive to load

* fix: add lh redis config to main and staging tf

* Revert "fix: disable lh prover caching temporarily"

This reverts commit 8204f7a.

* fix: update config to connect lambda to redis

* lh prover in vpc

* fix: lh prover lambda network config

* fix: attach private subnets only

* ci: fix

* ci: ops

---------

Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com>
Co-authored-by: Carlo Mazzaferro <carlo.mazzaferro@gmail.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>

* Alchemix assets added

* feat: batch size (#4458)

* ci: use latest image (#4454)

* ci: use latest image

* ci: move sdk server configs together

* ci: add mainnet sdk server config

* ci: correct config key

---------

Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com>
Co-authored-by: Carlo Mazzaferro <carlo.mazzaferro@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>
Co-authored-by: hesnicewithit <splitthedutch@gmail.com>
Co-authored-by: Arjun Bhuptani <arjunbhuptani@gmail.com>
rhlsthrm added a commit that referenced this pull request Jun 12, 2023
* feat: allow horizontal scalability of lighthouse prover (#4347)

* feat: install amqplib

* build: fix block-scoped variable

* feat: make pub/sub

* feat: add cache

* fix: cache and config

* feat: mvp of mq consumer

* feat: lambda subscriber (#4372)

* ci: lambda subscriber

* ci: lambda subscriber

* chore: bump chain abstraction

* fix: update tf config for sequncer cname

* fix: sequencer http queue config update

* fix: add auto scaling to seq publisher

* fix: typo and seq health port config change

* ci: prover

---------

Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>

* chore: yarn

* ci: fix tf and build docker

* ci: always build lh

* ci: try adding package

* ci: secrets

* ci: fix lh config

* ci: fix mq

* test: missing functions and branches

* chore: Yarn lock

* chore: eslint

* ci: check the latest commit

* fix: index

* ci: ops

* feat: create a queue and binding on publisher side

* ci: bump memory

* feat: get event from process.argv

* fix: type

* chore: logging arg1 and arg2

* chore: move logging location

* chore: console

* chore: optional

* feat: decode base64 string

* fix: pass event param

* ci: change secret

* fix: decode properly

* ci: secret

* ci: secret

* ci: ops for lh prover

* ci: remove lighthouse lambda subscriber

* ci: var

* feat: implement message cache

* feat: update message cache per pair

* feat: store processed messages

* choe: print logs

* chore: remove console

* fix: use lighthouse directory

* fix: disable lh prover caching temporarily

* fix: update tf config for lh prover sub

* fix: make auto scaling more responsive to load

* fix: add lh redis config to main and staging tf

* Revert "fix: disable lh prover caching temporarily"

This reverts commit 8204f7a.

* fix: update config to connect lambda to redis

* lh prover in vpc

* fix: lh prover lambda network config

* fix: attach private subnets only

* ci: fix

* ci: ops

---------

Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com>
Co-authored-by: Carlo Mazzaferro <carlo.mazzaferro@gmail.com>
Co-authored-by: just-a-node <eye1717@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>

* feat: batch size (#4458)

* ci: use latest image (#4454)

* ci: use latest image

* ci: move sdk server configs together

* ci: add mainnet sdk server config

* ci: correct config key

* fix: bedrock updates

* feat: alchemix assets added

---------

Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com>
Co-authored-by: Carlo Mazzaferro <carlo.mazzaferro@gmail.com>
Co-authored-by: preethamr <preethamr@users.noreply.github.com>
Co-authored-by: hesnicewithit <splitthedutch@gmail.com>
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.

Allow horizontal scalability of LH prover
5 participants