Skip to content

Commit

Permalink
enable more runner features
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian committed Apr 6, 2024
1 parent b0df293 commit 66604e1
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 46 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module "runners" {
enable_ssm_on_runners = true

# Let the module manage the service linked role
# create_service_linked_role_spot = true
create_service_linked_role_spot = true

instance_types = ["m6a.4xlarge", "c6a.4xlarge"]

Expand All @@ -60,20 +60,19 @@ module "runners" {
enable_ephemeral_runners = true

# # Example of simple pool usages
# pool_runner_owner = "subspace-scale-runners"
# pool_config = [{
# size = 3
# schedule_expression = "cron(* * * * ? *)"
# }]
#
#
pool_runner_owner = "subspace-scale-runners"
pool_config = [{
size = 3
schedule_expression = "cron(* * * * ? *)"
}]

enable_job_queued_check = true

# tracing_config = {
# mode = "Active"
# capture_error = true
# capture_http_requests = true
# }
tracing_config = {
mode = "Active"
capture_error = true
capture_http_requests = true
}


# AMI selection and userdata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module "runners" {
enable_ssm_on_runners = true

# Let the module manage the service linked role
# create_service_linked_role_spot = true
create_service_linked_role_spot = true

instance_types = ["m6a.4xlarge", "c6a.4xlarge"]

Expand All @@ -60,20 +60,19 @@ module "runners" {
enable_ephemeral_runners = true

# # Example of simple pool usages
# pool_runner_owner = "subspace-scale-runners"
# pool_config = [{
# size = 3
# schedule_expression = "cron(* * * * ? *)"
# }]
#
#
pool_runner_owner = "subspace-scale-runners"
pool_config = [{
size = 3
schedule_expression = "cron(* * * * ? *)"
}]

enable_job_queued_check = true

# tracing_config = {
# mode = "Active"
# capture_error = true
# capture_http_requests = true
# }
tracing_config = {
mode = "Active"
capture_error = true
capture_http_requests = true
}


# configure your pre-built AMI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,35 +78,35 @@ module "runners" {
webhook_secret = random_id.random.hex
}
# enable this section for tracing
# tracing_config = {
# mode = "Active"
# capture_error = true
# capture_http_requests = true
# }
tracing_config = {
mode = "Active"
capture_error = true
capture_http_requests = true
}
# Assuming local build lambda's to use pre build ones, uncomment the lines below and download the
# lambda zip files lambda_download
# webhook_lambda_zip = "../lambdas-download/webhook.zip"
# runner_binaries_syncer_lambda_zip = "../lambdas-download/runner-binaries-syncer.zip"
# runners_lambda_zip = "../lambdas-download/runners.zip"
lambda zip files lambda_download
webhook_lambda_zip = "../lambdas-download/webhook.zip"
runner_binaries_syncer_lambda_zip = "../lambdas-download/runner-binaries-syncer.zip"
runners_lambda_zip = "../lambdas-download/runners.zip"

# enable_workflow_job_events_queue = true
enable_workflow_job_events_queue = true
# override delay of events in seconds

# Enable debug logging for the lambda functions
# log_level = "debug"
log_level = "debug"

# Enable spot termination watcher
# spot_instance_termination_watcher = {
# enable = true
# }
spot_instance_termination_watcher = {
enable = true
}

# Enable to track the spot instance termination warning
# instance_termination_watcher = {
# enable = true
# enable_metric = {
# spot_warning = true
# }
# }
instance_termination_watcher = {
enable = true
enable_metric = {
spot_warning = true
}
}
}

module "webhook_github_app" {
Expand Down

0 comments on commit 66604e1

Please sign in to comment.