Project

General

Profile

Actions

Refactor #15849

open

Improve performance of host global status updates

Added by Tomer Brisker over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Performance
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

A host's global status is refreshed every time a new report comes in, which could be tens of thousands or more of refreshes every half hour for a large setup using puppet.
This means that the report handling process should be as fast as possible to prevent a bottleneck.

https://github.com/theforeman/foreman/pull/3447#issuecomment-235512793 includes a suggestion for a possible optimization, but more testing and benchmarking should be done to identify other possible bottlenecks.


Related issues 2 (0 open2 closed)

Related to Foreman - Bug #14401: Host#refresh_global_status not persisting changes to the dbClosedJohn Mitsch03/30/2016Actions
Related to Foreman - Feature #10782: Add global status for hostsClosedMarek Hulán06/11/2015Actions
Actions #1

Updated by Tomer Brisker over 7 years ago

  • Related to Bug #14401: Host#refresh_global_status not persisting changes to the db added
Actions #2

Updated by Tomer Brisker over 7 years ago

Actions #3

Updated by Lukas Zapletal over 7 years ago

Take explicit transactions into consideration too as they can improve batch updates.

Actions

Also available in: Atom PDF