Architecture #15864
Updated by Nicolas CHARLES about 5 years ago
When we generate policies, at the end we are deleting previous backup, moving previous policies to backup folder, and moving new policies to final position. folder. This can be really long (if it's on a different mount point, it can take up to a 1/3 of the policy generation time, for instance with 10 000 nodes, it took 1200 seconds), but we need to move the previous policies out of the way to have unitary changes - ticket #16072 takes care of documenting that they should be on the same FS. seconds) Ultimately, these These backup are rarely never used, so we could simply drop them async at the end of generation, so that we don't have to delete them during next policy generation, and save some disk space, time and IO - really speed up things by optionnaly skipping this could be done via a post generation hook move # remove disable the backup of previous policies at the end generation curl -k -H "X-API-Token: xxx" -X POST 'https://.../rudder/api/latest/settings/rudder_remove_previous_policies' 'https://.../rudder/api/latest/settings/rudder_backup_previous_policies' -d "value=true" "value=false"