On Wed, Oct 5, 2016 at 9:17 AM, gregor <[email protected]> wrote:
> Hi, > > did you found a solution or cause for this high CPU usage? > I have installed the self hosted engine on another server and there is > no VM running but ovirt-ha-agent uses heavily the CPU. > Yes, it's due to the fact that ovirt-ha-agent periodically reconnects over json rpc and this is CPU intensive since the client has to parse the yaml API specification each time it connects. The issue is tracked here: https://bugzilla.redhat.com/show_bug.cgi?id=1349829 - ovirt-ha-agent should reuse json-rpc connections but it depends on: https://bugzilla.redhat.com/show_bug.cgi?id=1376843 - [RFE] Implement a keep-alive with reconnect if needed logic for the python jsonrpc client > > cheers > gregor > > On 08/08/16 15:09, Gianluca Cecchi wrote: > > On Mon, Aug 8, 2016 at 1:03 PM, Roy Golan <[email protected] > > <mailto:[email protected]>> wrote: > > > > Does the spikes correlates with info messages on extracting the ovf? > > > > > > > > > > > > > > yes, it seems so and it happens every 14-15 seconds.... > > > > These are the lines I see scrolling in agent.log when I notice cpu > > spikes in ovirt-ha-agent... > > > > MainThread::INFO::2016-08-08 > > 15:03:07,815::storage_server::212::ovirt_hosted_engine_ha. > lib.storage_server.StorageServer::(connect_storage_server) > > Connecting storage server > > MainThread::INFO::2016-08-08 > > 15:03:08,144::storage_server::220::ovirt_hosted_engine_ha. > lib.storage_server.StorageServer::(connect_storage_server) > > Refreshing the storage domain > > MainThread::INFO::2016-08-08 > > 15:03:08,705::hosted_engine::685::ovirt_hosted_engine_ha. > agent.hosted_engine.HostedEngine::(_initialize_storage_images) > > Preparing images > > MainThread::INFO::2016-08-08 > > 15:03:08,705::image::126::ovirt_hosted_engine_ha.lib. > image.Image::(prepare_images) > > Preparing images > > MainThread::INFO::2016-08-08 > > 15:03:09,653::hosted_engine::688::ovirt_hosted_engine_ha. > agent.hosted_engine.HostedEngine::(_initialize_storage_images) > > Reloading vm.conf from the shared storage domain > > MainThread::INFO::2016-08-08 > > 15:03:09,653::config::205::ovirt_hosted_engine_ha.agent. > hosted_engine.HostedEngine.config::(refresh_local_conf_file) > > Trying to get a fresher copy of vm configuration from the OVF_STORE > > MainThread::INFO::2016-08-08 > > 15:03:09,843::ovf_store::100::ovirt_hosted_engine_ha.lib. > ovf.ovf_store.OVFStore::(scan) > > Found OVF_STORE: imgUUID:223d26c2-1668-493c-a322-8054923d135f, > > volUUID:108a362c-f5a9-440e-8817-1ed8a129afe8 > > MainThread::INFO::2016-08-08 > > 15:03:10,309::ovf_store::100::ovirt_hosted_engine_ha.lib. > ovf.ovf_store.OVFStore::(scan) > > Found OVF_STORE: imgUUID:12ca2fc6-01f7-41ab-ab22-e75c822ac9b6, > > volUUID:1a18851e-6858-401c-be6e-af14415034b5 > > MainThread::INFO::2016-08-08 > > 15:03:10,652::ovf_store::109::ovirt_hosted_engine_ha.lib. > ovf.ovf_store.OVFStore::(getEngineVMOVF) > > Extracting Engine VM OVF from the OVF_STORE > > MainThread::INFO::2016-08-08 > > 15:03:10,974::ovf_store::116::ovirt_hosted_engine_ha.lib. > ovf.ovf_store.OVFStore::(getEngineVMOVF) > > OVF_STORE volume path: > > /rhev/data-center/mnt/ovirt01.lutwyn.org:_SHE__DOMAIN/ > 31a9e9fd-8dcb-4475-aac4-09f897ee1b45/images/12ca2fc6- > 01f7-41ab-ab22-e75c822ac9b6/1a18851e-6858-401c-be6e-af14415034b5 > > MainThread::INFO::2016-08-08 > > 15:03:11,494::config::225::ovirt_hosted_engine_ha.agent. > hosted_engine.HostedEngine.config::(refresh_local_conf_file) > > Found an OVF for HE VM, trying to convert > > MainThread::INFO::2016-08-08 > > 15:03:11,497::config::230::ovirt_hosted_engine_ha.agent. > hosted_engine.HostedEngine.config::(refresh_local_conf_file) > > Got vm.conf from OVF_STORE > > MainThread::INFO::2016-08-08 > > 15:03:11,675::hosted_engine::462::ovirt_hosted_engine_ha. > agent.hosted_engine.HostedEngine::(start_monitoring) > > Current state EngineUp (score: 3400) > > > > > > _______________________________________________ > > Users mailing list > > [email protected] > > http://lists.ovirt.org/mailman/listinfo/users > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.ovirt.org/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/users

