Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify Service['oneagent'] to refresh the service instead of using --restart-service on each oneagentctl call #39

Open
costco-kynelson opened this issue Feb 23, 2021 · 0 comments

Comments

@costco-kynelson
Copy link

The oneagentctl changes are currently implemented per setting, which can chain multiple oneagentctl calls with the --restart-service commands. The primary impact is adding over a minute to the initial install, which is significant enough that this is worth improving because we have dynamic environments where Puppet is the major contributor to build times. After the initial install, most use cases won't mind the overhead as most configuration options won't be changed at once.

The ideal method would be to have all the Config/Exec resources notify the Service to refresh (restart) instead of using --restart-service.

Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/deployment.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/deployment.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/deployment.conf]: Scheduling refresh of Exec[set_oneagent_communication]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/deployment.conf]: Scheduling refresh of Exec[set_oneagent_communication]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logmonitoring.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logmonitoring.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logmonitoring.conf]: Scheduling refresh of Exec[set_log_monitoring]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logmonitoring.conf]: Scheduling refresh of Exec[set_log_monitoring]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logaccess.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logaccess.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logaccess.conf]: Scheduling refresh of Exec[set_log_access]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/logaccess.conf]: Scheduling refresh of Exec[set_log_access]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostgroup.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostgroup.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostgroup.conf]: Scheduling refresh of Exec[set_host_group]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostgroup.conf]: Scheduling refresh of Exec[set_host_group]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostautotag.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostautotag.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostautotag.conf]: Scheduling refresh of Exec[set_host_tags]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostautotag.conf]: Scheduling refresh of Exec[set_host_tags]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostcustomproperties.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostcustomproperties.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostcustomproperties.conf]: Scheduling refresh of Exec[set_host_metadata]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/hostcustomproperties.conf]: Scheduling refresh of Exec[set_host_metadata]
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/infraonly.conf]/seluser: seluser changed 'system_u' to 'unconfined_u' (corrective)
Notice: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/infraonly.conf]/seltype: seltype changed 'var_lib_t' to 'oneagent_var_lib_t' (corrective)
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/infraonly.conf]: Scheduling refresh of Exec[set_infra_only]
Info: /Stage[main]/Dynatraceoneagent::Config/File[/var/lib/dynatrace/oneagent/agent/config/puppet/infraonly.conf]: Scheduling refresh of Exec[set_infra_only]
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_oneagent_communication]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_log_monitoring]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_log_access]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_host_group]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_host_tags]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_host_metadata]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Dynatraceoneagent::Config/Exec[set_infra_only]: Triggered 'refresh' from 2 events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants