My UI is running extremely slow and it appears to do that when there is a lot of execution/log history. I am running mysql as the backend db. Which tables should I truncate to remove some history? The two I think should be are base_report and execution but wanted confirmation that is correct.Thanks!
--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alex Honor
[SimplifyOps, Inc | a...@simplifyops.com ]
Be sure to comment and vote on Rundeck Feature Development!
Alex Honor
use rundeck;
ALTER TABLE `base_report` ADD INDEX `jc_exec_id` (`jc_exec_id`);
ALTER TABLE `base_report` ADD INDEX `class` (`class`);
ALTER TABLE `base_report` ADD INDEX `version` (`version`);
ALTER TABLE `execution` ADD INDEX `retry_execution_id` ( `retry_execution_id` );
ALTER TABLE `execution` ADD INDEX `version` (`version`);# Run on rundeck server, bash command
for i in `mysql -u root -N -p -B -e "select jc_exec_id from base_report where report_id like '%<your job group>/<your job name>%' limit 10000;" rundeck`; do echo "Deleting $i"; curl -X DELETE http://localhost:4440/api/12/execution/$i -H "X-RunDeck-Auth-Token: <your API token>" --connect-timeout 10 -m 10; donedescription: API Application level access control
context:
application: 'rundeck'
for:
resource:
- equals:
kind: system
allow: [read] # allow read of system info
project:
- match:
name: '.*'
allow: [read,delete_execution] # allow view and execution deletion of all projects
storage:
- match:
path: '(keys|keys/.*)'
allow: '*' # allow all access to manage stored keys
by:
group: api_token_group