Project

General

Profile

Actions

Bug #10383

closed

If I click on "Regenerate all policies", it clears the cache of changes, and slows down a lot the web interface

Added by Nicolas CHARLES about 7 years ago. Updated about 7 years ago.

Status:
Released
Priority:
N/A
Category:
Performance and scalability
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Infrequent - complex configurations | third party integrations
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Clicking on "Regenerate all policies" clears all the caches, even the expensive changes cache (all changes made by the rules)
So it starts querying the database to get them over the last 3 days, and it can be very large, and slow to gather (with out of the box config, 2000 nodes and millions changes, it takes 4 minutes) - and it slows down everything

I don't see why Regenerating all policies would clear this cache.

Actions #1

Updated by François ARMAND about 7 years ago

As it is a (potentially big) behavior change, shouldn't it go to 4.1 ?

Actions #2

Updated by Nicolas CHARLES about 7 years ago

Maybe - it sounds more like a bug to me, but it changes indeed the behaviour

Actions #3

Updated by Jonathan CLARKE about 7 years ago

  • User visibility set to Infrequent - complex configurations | third party integrations
Actions #4

Updated by François ARMAND about 7 years ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND
Actions #5

Updated by François ARMAND about 7 years ago

So, it actually just call "clear cache" (the actual action from the button in setting). It does not seem trivial to change it to a pur "regenerate all". And perhaps it needs it own even log.

Actions #6

Updated by François ARMAND about 7 years ago

  • Target version changed from 4.0.4 to 4.1.0

Ah, and so I would change it for 4.1, not 4.0.

Actions #7

Updated by François ARMAND about 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Vincent MEMBRÉ
  • Pull Request set to https://github.com/Normation/rudder/pull/1576
Actions #8

Updated by François ARMAND about 7 years ago

  • Status changed from Pending technical review to Pending release
Actions #9

Updated by Benoît PECCATTE about 7 years ago

  • Status changed from Pending release to Released
  • Priority set to 0

This bug has been fixed in Rudder 4.1.0 which was released today.

Actions

Also available in: Atom PDF