Skip to content

Conversation

@edwintorok
Copy link
Contributor

This briefly explains the goal behind the refactoring PR, and the XAPI side of the changes.

See also the Event handling in the Control Plane - Xapi, Xenopsd and Xenstore written by @mg12.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
as started during a bootstorm.
It can happen that the VM is able to send UDP packets already, but XAPI still reports it as not started for minutes.

XAPI currently processes all events from xenopsd in a single thread, the unpause
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the relevant code that processes events from xenopsd in xapi is somewhere here: https://github.com/xapi-project/xen-api/blob/master/ocaml/xapi/xapi_xenops.ml#L1204

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The event loop for xenopsd->xapi is here in events_watch: https://github.com/xapi-project/xen-api/blob/master/ocaml/xapi/xapi_xenops.ml#L1919, and it calls the module you mentioned.

Copy link
Contributor

@gaborigloi gaborigloi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, great explanation, I found the introduction easy to understand, even as someone who didn't know much about this issue :)

@robhoes robhoes merged commit e348d87 into xapi-project:master May 30, 2017
@edwintorok edwintorok deleted the refactor-work-queues branch May 30, 2017 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants