Project

General

Profile

Actions

Bug #3611

closed

The rudder-upgrade script could be very long to execute (>5min)

Added by Nicolas CHARLES over 11 years ago. Updated over 9 years ago.

Status:
Released
Priority:
N/A
Assignee:
Jonathan CLARKE
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When doing a rudder upgrade, the Postgres service is checked with the following command :

retry_wrapper 'su - postgres -c "psql -t -d rudder -c \"select count(id) from ruddersysevents\"" >/dev/null 2>&1' 'PostgreSQL'

This can be quite slow if the database is very very big, as it can be on large installs. We could rather check on smallish table, which would be much much faster

retry_wrapper 'su - postgres -c "psql -t -d rudder -c \"select count(id) from eventlog\"" >/dev/null 2>&1' 'PostgreSQL'

Actions

Also available in: Atom PDF