From 582620274abeccdfa748a214b7ec30f796e7731c Mon Sep 17 00:00:00 2001 From: sharnoff Date: Mon, 13 Mar 2023 07:16:39 -0700 Subject: [PATCH] Enable file cache handling by vm-informant (#3794) Enables the VM informant's file cache integration. See also: https://github.com/neondatabase/autoscaling/pull/47 --- Dockerfile.vm-compute-node | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile.vm-compute-node b/Dockerfile.vm-compute-node index dff40485de..faea311708 100644 --- a/Dockerfile.vm-compute-node +++ b/Dockerfile.vm-compute-node @@ -1,7 +1,7 @@ # Note: this file *mostly* just builds on Dockerfile.compute-node ARG SRC_IMAGE -ARG VM_INFORMANT_VERSION=v0.1.6 +ARG VM_INFORMANT_VERSION=v0.1.14 # Pull VM informant and set up inittab FROM neondatabase/vm-informant:$VM_INFORMANT_VERSION as informant @@ -11,7 +11,9 @@ RUN set -e \ && touch /etc/inittab RUN set -e \ - && echo "::respawn:su vm-informant -c '/usr/local/bin/vm-informant --auto-restart'" >> /etc/inittab + && CONNSTR="dbname=neondb user=cloud_admin sslmode=disable" \ + && ARGS="--auto-restart --pgconnstr=\"$CONNSTR\"" \ + && echo "::respawn:su vm-informant -c '/usr/local/bin/vm-informant $ARGS'" >> /etc/inittab # Combine, starting from non-VM compute node image. FROM $SRC_IMAGE as base