-
Notifications
You must be signed in to change notification settings - Fork 284
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
CP-48570: Load recommendations from config file when Xapi starts #5637
CP-48570: Load recommendations from config file when Xapi starts #5637
Conversation
This description doesn't seem accurate. To configure |
c689893
to
9866e19
Compare
9866e19
to
8a3dfdf
Compare
8a3dfdf
to
20a4605
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ Additional details and impacted files@@ Coverage Diff @@
## feature/vm-anti-affinity #5637 +/- ##
==========================================================
- Coverage 51.3% 45.5% -5.9%
==========================================================
Files 13 13
Lines 1925 1624 -301
==========================================================
- Hits 988 739 -249
+ Misses 937 885 -52 see 11 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
In my earlier comments I misunderstood the purpose of the recommendations. My current understanding is:
|
Why does |
20a4605
to
13dd5a1
Compare
I think the above can be added into commit message. |
13dd5a1
to
220e4c2
Compare
The recommendations are read from files '/etc/xapi.pool-recommendations.d/*' and exposed to clients. They are read-only and only for clients, hence they don't impact the behavior of Xapi directly but only indirectly as they inform a client's behavior. Signed-off-by: Bengang Yuan <bengang.yuan@cloud.com>
220e4c2
to
4a8bf66
Compare
4a8bf66
to
4c87417
Compare
4c87417
to
22ffcc7
Compare
The recommendations are read from '/etc/xapi.pool-recommendations.d/*.conf'. When Xapi starts, it will read each file and update the recommendations into the database. If we need to add recommendations to other type objects, e.g. host, VM, etc in the future, just add a similar 'xapi.*-recommendations.d' directory and define the path in xapi_globs. Signed-off-by: Bengang Yuan <bengang.yuan@cloud.com>
22ffcc7
to
1f9d39e
Compare
d03febe
into
xapi-project:feature/vm-anti-affinity
/etc/xapi.pool-recommendations.d/*
and exposed to clients. They are read-only and only for clients, hence they don't impact the behavior of Xapi directly but only indirectly as they inform a client's behavior.xapi.*-recommendations.d
directory and define the path in xapi_globs.