-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat(provider): add gcp provider with data #372
Conversation
Two remaining questions:
|
771b7de
to
3b6c2c8
Compare
The platform is the bare metal server that hosts the instance. Since we are calculating the impact of the instance as part of the bare metal server, we need to know its architecture. The platform field must match one of the id's of the available server archetypes. So you should add a platform name that matches a platform you are going to create in boaviztapi/data/archetypes/server.csv. This documentation may help you:
It is always difficult to get all the data, so sometimes you will have to guess. If so, you should mention it in the warning column. I recommend that you set the CPU name so that the other values are automatically filled in at runtime. If you do this, make sure the CPU is listed in the CPU data file. If it is not listed, you should add it so that everyone can benefit from it: https://doc.api.boavizta.org/contributing/cpu/. The most important values are :
For POWER_SUPPLY and USAGE feel free to use the values from the other providers.
We believe that GPUs are never shared between instances, so there is no need to include the resources in the instance file. However, you can add the data to the server.csv. For know we are not calculating the impact of GPU but we will be soon so I recommend you to add it. Hope this is clear, if not ping me on mattermost. |
4a066ef
to
098e421
Compare
I dont know if you are aware but we use the ";" as a separator in the CSV to distinguish between average;min;max value of a parameter. I just saw that you replaced them with "," in server.csv file. Just to confirm, it is normal to have ;. It can be useful if you don't know an exact value but prefer to give a range. The API will calculate the min and max values. |
Thanks for the quick review @da-ekchajzer. I am filling the csv file using open office, that's why it's filled with ",". I will make a fix once I'm done 👍 |
098e421
to
f001f9f
Compare
0165bc2
to
ae90d6f
Compare
PR ready for review @da-ekchajzer 👍 |
ae90d6f
to
fbbfca7
Compare
Well done! Were you able to automate it or did you do it manually? At first glance, I see strange numbers: I think the "," should be removed as it seems to be a thousand separator. Other remark, are these only instances with SSD storage? No HDD? |
Ideally we should implement a test that computes all instances. But I should open a topic dedicated to this. |
I did it manually, but I could add a script as it seems that most of the information are stored in HTML tables.
Indeed, I have double-checked and removed the thousand separators.
As I understood the documentation, most of the machines does not come SSD nor HDD. One needs to rent a hard drive when creating a machine. In addition, some of the types such as n4 does not support persistent or local SSD, whereas others support a lot (see https://cloud.google.com/compute/docs/general-purpose-machines?hl=en#c3_disks for example). That's why I only added hard drive capabilities when it is included in a machine such as c4a machines. Would you do it otherwise ? |
Changelog * Update providers.csv * Add data from gcp with documentation links * Update cpu_specs.csv * Update tests
fbbfca7
to
1673ddd
Compare
So you include ssd when it is explicitly a local SSD ? As I understand not all C4a have SSD. We are planning to add storage as a service to get the impacts of additional storage |
Have you been able to test all instances through a script for instance ? |
Yes exactly 👍 That's why there are two archetypes for a "standard c4a" server:
I will add a test 👍 I only added a single instance in the tests/data/archetype at the moment. |
I thought about this
(It's basically an update of the test test_platform_exists_in_server_csv with explicits checks on mandatory fields) |
Changelog
Fix #145