Project

General

Profile

Actions

Feature #20267

closed

Need Foreman size estimation script

Added by Mike McCune over 6 years ago. Updated about 1 month ago.

Status:
Rejected
Priority:
Normal
Category:
-
Target version:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1390694

We need a simple script that users can run that can collect the following information:

1) Disk consumption and availability of the following directories:

/var/lib/pulp/
/var/lib/mongodb/
/var/lib/pgsql/

/dev/sda:
Timing cached reads: 31332 MB in 2.00 seconds = 15689.05 MB/sec
Timing buffered disk reads: 466 MB in 3.01 seconds = 154.99 MB/sec

Not all Foreman servers will have this installed so just automatically install it if you have to

3) Table sizes:

https://gist.github.com/mccun934/e93358be72902aa67dc450cb4f7c4574

cat tablesizes.sql | sudo -u postgres psql -d foreman

4) Table counts:

select count() from hosts;
select count() from dynflow_actions;
select count() from dynflow_steps;
select count() from katello_repositories;

A second phase would be to take these #s and calculate an estimated upgrade time but just gathering this data will be helpful and can be included in foreman-debug if possible.

Build this into a new health check:

foreman_maintain health check --tags=size-report


Related issues 1 (0 open1 closed)

Has duplicate Katello - Feature #20028: Need Katello size estimation scriptDuplicateAndrew Kofink06/15/2017Actions
Actions #1

Updated by Mike McCune over 6 years ago

  • Tracker changed from Bug to Feature
Actions #2

Updated by Swapnil Abnave over 6 years ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/77 added
Actions #3

Updated by Swapnil Abnave over 6 years ago

  • Target version set to next version
Actions #4

Updated by Justin Sherrill over 6 years ago

  • Has duplicate Feature #20028: Need Katello size estimation script added
Actions #5

Updated by The Foreman Bot almost 6 years ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/173 added
Actions #6

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
Actions #7

Updated by Eric Helms about 1 month ago

  • Status changed from Ready For Testing to Rejected
Actions

Also available in: Atom PDF