Beuth-Erdelt / Benchmark-Experiment-Host-Manager

This python tool helps managing DBMS benchmarking experiments in a Kubernetes-based HPC cluster environment. It enables users to configure hardware / software setups for easily repeating tests over varying configurations.
GNU Affero General Public License v3.0
6 stars 0 forks source link

Consistent recovery state has not been yet reached at PostgreSQL #253

Closed perdelt closed 9 months ago

perdelt commented 9 months ago

This happens sometimes when a persistent storage of class shared is used.

Is there a more graceful shutdown?

perdelt commented 9 months ago

Solved with

      terminationGracePeriodSeconds: 60
      containers:
      - name: dbms
        image: postgres:16.1
        env:
        - name: POSTGRES_HOST_AUTH_METHOD
          value: trust
        - name: PGDATA
          value: /var/lib/postgresql/data/pgdata
        lifecycle:
          preStop:
            exec:
              command: ["/bin/sh", "-c", "pg_ctl stop -D /var/lib/postgresql/data -m fast"]