Project

General

Profile

Actions

Bug #3674

closed

Missing index on DB for "reports by nodes" leads to timeout for node list page

Added by Dennis Cabooter almost 11 years ago. Updated over 10 years ago.

Status:
Released
Priority:
1
Category:
Web - Compliance & node report
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

After upgrading rudder-server-root from 2.5 to 2.6 now and then searching is not working within the webapp. The connection times out and a popup says "The server cannot be contacted at this time". I had this issue before and we managed to solve it with help from Nicolas Charles. We emptied the database and Rudder was fast again. Since then the problem occured again several times. The webapp is not responsive and I can only search for certain groups (the small ones). Please let's find a definitive solution. Do you recommend me to reinstall Rudder from scratch?

Summary of solution: we need two indexes, 1/ one on RudderSysEvent by execution timestamps, and 2/ one on RudderSysEvent by (execution timestamps and by node)

With only 1/ (and not 2/), we get behaviour described here.
With only 2/ (and not 1/), we get #3926.

(1) CREATE INDEX executionTimeStamp_idx on RudderSysEvents (executionTimeStamp);
(2) CREATE INDEX composite_node_execution_idx on RudderSysEvents (nodeId, executionTimeStamp); 

Related issues 5 (0 open5 closed)

Related to Rudder - Architecture #3918: Migration script to change indexes on rudder sys eventsReleasedJonathan CLARKE2013-09-09Actions
Related to Rudder - Architecture #3988: Change rudder sysevents indexes on PostgreSQLReleased2013-09-09Actions
Has duplicate Rudder - Bug #3683: Rudder returns "Server cannot be contacted" if a group criteria is based on a wrong regexpReleasedFrançois ARMAND2013-07-03Actions
Has duplicate Rudder - Bug #3902: Postgres performance problem when loading nodeManager > nodesRejected2013-09-03Actions
Has duplicate Rudder - Bug #3926: Rule page display time increasing lineary with the number of reports in DBRejectedFrançois ARMAND2013-09-12Actions
Actions

Also available in: Atom PDF