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

✨ Clusters keeper: add rpc methods to get EC2 instance capabilities #4942

Conversation

sanderegg
Copy link
Member

@sanderegg sanderegg commented Oct 27, 2023

What do these changes do?

This PR enhance the Clusters-keeper RPC interface to allow to get information about possible EC2 instance types and capabilities (for now RAM and CPUs)

In the next PR, this will be used from the director-v2 to fully use the underlying machine capacity

Related issue/s

How to test

cd services/clusters-keeper
make install-dev
make test-dev-unit

DevOps Checklist

@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

Merging #4942 (f793fdd) into master (8946f07) will decrease coverage by 3.7%.
The diff coverage is 97.7%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #4942     +/-   ##
========================================
- Coverage    86.9%   83.2%   -3.7%     
========================================
  Files        1205     979    -226     
  Lines       50169   43323   -6846     
  Branches     1074     534    -540     
========================================
- Hits        43625   36075   -7550     
- Misses       6308    7129    +821     
+ Partials      236     119    -117     
Flag Coverage Δ
integrationtests 65.3% <100.0%> (+0.1%) ⬆️
unittests 84.4% <97.6%> (-0.2%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ls_library/api_schemas_clusters_keeper/__init__.py 100.0% <100.0%> (ø)
...ls_library/api_schemas_clusters_keeper/clusters.py 100.0% <ø> (ø)
...brary/api_schemas_clusters_keeper/ec2_instances.py 100.0% <100.0%> (ø)
...src/simcore_service_clusters_keeper/core/errors.py 100.0% <100.0%> (ø)
...eper/src/simcore_service_clusters_keeper/models.py 100.0% <ø> (ø)
...src/simcore_service_clusters_keeper/modules/ec2.py 100.0% <100.0%> (ø)
...imcore_service_clusters_keeper/modules/rabbitmq.py 100.0% <100.0%> (ø)
...rc/simcore_service_clusters_keeper/rpc/clusters.py 53.5% <100.0%> (ø)
.../simcore_service_clusters_keeper/rpc/rpc_routes.py 100.0% <100.0%> (ø)
.../simcore_service_clusters_keeper/utils/clusters.py 71.7% <100.0%> (ø)
... and 2 more

... and 326 files with indirect coverage changes

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

cool! I added some thoughts and suggestions.

@sanderegg sanderegg force-pushed the clusters-keeper/add-rpc-to-get-instance-capabilities branch from a85f328 to e3dfbd4 Compare October 29, 2023 20:59
Copy link
Contributor

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

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

👍

@sanderegg sanderegg force-pushed the clusters-keeper/add-rpc-to-get-instance-capabilities branch from 76f41d1 to f793fdd Compare October 30, 2023 08:32
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codeclimate
Copy link

codeclimate bot commented Oct 30, 2023

Code Climate has analyzed commit f793fdd and detected 0 issues on this pull request.

View more on Code Climate.

@sanderegg sanderegg merged commit 9da8fa7 into ITISFoundation:master Oct 30, 2023
@sanderegg sanderegg deleted the clusters-keeper/add-rpc-to-get-instance-capabilities branch October 30, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants