Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
ed3982b5
Unverified
Commit
ed3982b5
authored
Dec 20, 2023
by
Gyanendra Mishra
Committed by
GitHub
Dec 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: roll out persistence for postgres on ethereum-package (#421)
parent
f957f851
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
4 deletions
+19
-4
mix-with-tools-mev.yaml
.github/tests/mix-with-tools-mev.yaml
+1
-0
README.md
README.md
+5
-0
main.star
main.star
+4
-0
network_params.yaml
network_params.yaml
+1
-0
blobscan_launcher.star
src/blobscan/blobscan_launcher.star
+2
-1
full_beaconchain_launcher.star
src/full_beaconchain/full_beaconchain_launcher.star
+2
-1
mev_relay_launcher.star
src/mev/mev_relay/mev_relay_launcher.star
+2
-2
input_parser.star
src/package_io/input_parser.star
+2
-0
No files found.
.github/tests/mix-with-tools-mev.yaml
View file @
ed3982b5
...
...
@@ -26,3 +26,4 @@ snooper_enabled: true
mev_type
:
full
mev_params
:
mev_relay_image
:
flashbots/mev-boost-relay:0.27
persistent
:
True
README.md
View file @
ed3982b5
...
...
@@ -323,6 +323,11 @@ disable_peer_scoring: false
# A list of locators for grafana dashboards to be loaded be the grafana service
grafana_additional_dashboards
:
[]
# Whether the environment should be persistent; this is WIP and is slowly being rolled out accross services
# Note this requires Kurtosis greater than 0.85.49 to work
# Defaults to False
persistent
:
False
# Supports three valeus
# Default: "null" - no mev boost, mev builder, mev flood or relays are spun up
# "mock" - mock-builder & mev-boost are spun up
...
...
main.star
View file @
ed3982b5
...
...
@@ -59,6 +59,7 @@ def run(plan, args={}):
network_params = args_with_right_defaults.network_params
mev_params = args_with_right_defaults.mev_params
parallel_keystore_generation = args_with_right_defaults.parallel_keystore_generation
persistent = args_with_right_defaults.persistent
grafana_datasource_config_template = read_file(
static_files.GRAFANA_DATASOURCE_CONFIG_TEMPLATE_FILEPATH
...
...
@@ -222,6 +223,7 @@ def run(plan, args={}):
genesis_validators_root,
builder_uri,
network_params.seconds_per_slot,
persistent,
)
mev_flood.spam_in_background(
plan,
...
...
@@ -345,6 +347,7 @@ def run(plan, args={}):
all_cl_client_contexts,
all_el_client_contexts,
network_params.network_id,
persistent,
)
plan.print("Successfully launched blobscan")
elif additional_service == "full_beaconchain_explorer":
...
...
@@ -357,6 +360,7 @@ def run(plan, args={}):
full_beaconchain_explorer_config_template,
all_cl_client_contexts,
all_el_client_contexts,
persistent,
)
plan.print("Successfully launched full-beaconchain-explorer")
elif additional_service == "prometheus_grafana":
...
...
network_params.yaml
View file @
ed3982b5
...
...
@@ -74,3 +74,4 @@ mev_params:
mev_flood_extra_args
:
[]
mev_flood_seconds_per_bundle
:
15
grafana_additional_dashboards
:
[]
persistent
:
False
src/blobscan/blobscan_launcher.star
View file @
ed3982b5
...
...
@@ -58,6 +58,7 @@ def launch_blobscan(
cl_client_contexts,
el_client_contexts,
chain_id,
persistent,
):
beacon_node_rpc_uri = "http://{0}:{1}".format(
cl_client_contexts[0].ip_addr, cl_client_contexts[0].http_port_num
...
...
@@ -73,7 +74,7 @@ def launch_blobscan(
max_cpu=POSTGRES_MAX_CPU,
min_memory=POSTGRES_MIN_MEMORY,
max_memory=POSTGRES_MAX_MEMORY,
persistent=
False
,
persistent=
persistent
,
)
api_config = get_api_config(postgres_output.url, beacon_node_rpc_uri, chain_id)
blobscan_config = plan.add_service(API_SERVICE_NAME, api_config)
...
...
src/full_beaconchain/full_beaconchain_launcher.star
View file @
ed3982b5
...
...
@@ -96,6 +96,7 @@ def launch_full_beacon(
config_template,
cl_client_contexts,
el_client_contexts,
persistent,
):
postgres_output = postgres.run(
plan,
...
...
@@ -108,7 +109,7 @@ def launch_full_beacon(
max_cpu=POSTGRES_MAX_CPU,
min_memory=POSTGRES_MIN_MEMORY,
max_memory=POSTGRES_MAX_MEMORY,
persistent=
False
,
persistent=
persistent
,
)
redis_output = redis.run(
plan,
...
...
src/mev/mev_relay/mev_relay_launcher.star
View file @
ed3982b5
...
...
@@ -18,7 +18,6 @@ NETWORK_ID_TO_NAME = {
"3": "ropsten",
}
DONT_PERSIST_TO_DISK = False
LAUNCH_ADMINER = True
# The min/max CPU/memory that mev-relay can use
...
...
@@ -48,6 +47,7 @@ def launch_mev_relay(
validator_root,
builder_uri,
seconds_per_slot,
persistent,
):
redis = redis_module.run(
plan,
...
...
@@ -64,7 +64,7 @@ def launch_mev_relay(
user="postgres",
database="postgres",
service_name="mev-relay-postgres",
persistent=
DONT_PERSIST_TO_DISK
,
persistent=
persistent
,
launch_adminer=LAUNCH_ADMINER,
min_cpu=POSTGRES_MIN_CPU,
max_cpu=POSTGRES_MAX_CPU,
...
...
src/package_io/input_parser.star
View file @
ed3982b5
...
...
@@ -69,6 +69,7 @@ def input_parser(plan, input_args):
result["tx_spammer_params"] = get_default_tx_spammer_params()
result["custom_flood_params"] = get_default_custom_flood_params()
result["disable_peer_scoring"] = False
result["persistent"] = False
for attr in input_args:
value = input_args[attr]
...
...
@@ -216,6 +217,7 @@ def input_parser(plan, input_args):
parallel_keystore_generation=result["parallel_keystore_generation"],
grafana_additional_dashboards=result["grafana_additional_dashboards"],
disable_peer_scoring=result["disable_peer_scoring"],
persistent=result["persistent"],
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment