update lightningd to 0.9.3

remove LB autoscaler
This commit is contained in:
nitramiz 2021-03-29 07:09:55 -07:00
parent 905e7e6a87
commit 417b52ad5e
No known key found for this signature in database
GPG key ID: 2352C35346C5D534
4 changed files with 16 additions and 45 deletions

View file

@ -41,7 +41,7 @@ module "blc-mainnet" {
env = local.env
lb_svc_acct = module.lb.lb_svc_acct
ssh_key_net = ""
lightning_cmd = "lightningd --mainnet --conf=/root/.lightning/bitcoin/lightning.conf"
lightning_cmd = "--mainnet --conf=/root/.lightning/bitcoin/lightning.conf"
create_resources = local.create_mainnet
@ -78,7 +78,7 @@ module "blc-testnet" {
env = local.env
lb_svc_acct = length(data.terraform_remote_state.blc-mainnet.outputs) > 1 ? data.terraform_remote_state.blc-mainnet.outputs.lb_svc_acct : ""
ssh_key_net = "_testnet"
lightning_cmd = "lightningd --testnet --conf=/root/.lightning/testnet/lightning.conf"
lightning_cmd = "--testnet --conf=/root/.lightning/testnet/lightning.conf"
create_resources = local.create_testnet

View file

@ -173,7 +173,7 @@ write_files:
owner: root
content: |
log-level=debug
plugin-dir=/usr/local/bin/plugins
plugin-dir=/opt/plugins
alias=ionosphere-${net}
bitcoin-rpcuser=${net}-def
bitcoin-rpcpassword=${rpcpass}
@ -352,25 +352,14 @@ write_files:
runcmd:
- systemctl daemon-reload
- systemctl start autossh-key-downloader.service
- systemctl enable autossh-key-downloader.service
- systemctl start k8s-autossh.service
- systemctl enable k8s-autossh.service
- systemctl start lightning.service
- systemctl enable lightning.service
# - systemctl start postgres.service
# - systemctl enable postgres.service
- systemctl start redis.service
- systemctl enable redis.service
- systemctl start ionosphere.service
- systemctl enable ionosphere.service
- systemctl start ionosphere-tx.service
- systemctl enable ionosphere-tx.service
- systemctl start ionosphere-sse.service
- systemctl enable ionosphere-sse.service
- systemctl start charge.service
- systemctl enable charge.service
- systemctl start node-exporter.service
- systemctl enable node-exporter.service
- systemctl start check-containers.timer
- systemctl enable check-containers.timer
- systemctl enable --now autossh-key-downloader.service
- systemctl enable --now k8s-autossh.service
- systemctl enable --now lightning.service
# - systemctl enable --now postgres.service
- systemctl enable --now redis.service
- systemctl enable --now ionosphere.service
- systemctl enable --now ionosphere-tx.service
- systemctl enable --now ionosphere-sse.service
- systemctl enable --now charge.service
- systemctl enable --now node-exporter.service
- systemctl enable --now check-containers.timer

View file

@ -1,22 +1,3 @@
resource "google_compute_region_autoscaler" "satapi-lb" {
name = "${var.name}-autoscaler-${var.env}"
target = google_compute_region_instance_group_manager.satapi-lb[0].self_link
region = var.region
project = var.project
provider = google
count = var.create_resources
autoscaling_policy {
max_replicas = 2
min_replicas = 1
cooldown_period = 60
cpu_utilization {
target = 0.8
}
}
}
# Instance group & template
resource "google_compute_region_instance_group_manager" "satapi-lb" {
name = "${var.name}-ig-${var.env}"

View file

@ -230,9 +230,10 @@ variable "ionosphere_sse_docker" {
}
# Less frequently updated images
# v0.9.3
variable "lightning_docker" {
type = string
default = "blockstream/lightningd@sha256:baa37ddc2019af21c187052fe6b457d7c604de512c209fc494efebecfb7a24ab"
default = "blockstream/lightningd@sha256:8c7a54ff6fbcb9664a8e74b08884d21de203df64f3cc18dc243b79751f586981"
}
variable "charge_docker" {