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

Add CPU & memory to ContainerInstance #400

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ziqih
Copy link
Contributor

@ziqih ziqih commented Aug 9, 2022

Summary:

Context

We want to enable customized containers in our infra (design doc). Therefore we need to add cpu & memory specs to ContainerInstance;

This commit

  • Add CPU & Memory to ContainerInstance
  • Parse them in map_ecstask_to_containerinstance

How this effect pcs_container_instance.py?

Since PCSContainerInstance inherits ContainerInstance, we change it to use keyword argument for log_url to prevent breaks;

Differential Revision: D38553232

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Aug 9, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D38553232

ziqih added a commit to ziqih/fbpcp that referenced this pull request Aug 9, 2022
Summary:
Pull Request resolved: facebookresearch#400

## Context
We want to enable customized containers in our infra ([design doc](https://docs.google.com/document/d/1UqaK6VXEoIVUHSJnYs_Ydju8)). Therefore we need to add cpu & memory specs to ContainerInstance;
## This commit
- Add CPU & Memory to ContainerInstance
- Parse them in map_ecstask_to_containerinstance
## How this effect ```pcs_container_instance.py```?
Since ```PCSContainerInstance``` inherits ```ContainerInstance```, we change it to use keyword argument for ```log_url``` to prevent breaks;

Differential Revision: D38553232

fbshipit-source-id: 03b0db99d649dee08abd0b027c95496e5550daf1
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D38553232

Summary:
Pull Request resolved: facebookresearch#400

## Context
We want to enable customized containers in our infra ([design doc](https://docs.google.com/document/d/1UqaK6VXEoIVUHSJnYs_Ydju8)). Therefore we need to add cpu & memory specs to ContainerInstance;
## This commit
- Add CPU & Memory to ContainerInstance
- Parse them in map_ecstask_to_containerinstance
## How this affect ```pcs_container_instance.py```?
Since ```PCSContainerInstance``` inherits ```ContainerInstance```, we change it to use keyword argument for ```log_url``` to prevent breaks; If needed by PSI team, we can also add cpu and memory to ```PCSContainerInstance``` (see code in V1)

Differential Revision: D38553232

fbshipit-source-id: b53c7f9f6788dbb702944371f61372013010ae6e
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D38553232

ziqih added a commit to ziqih/fbpcs that referenced this pull request Aug 10, 2022
…h#400)

Summary:
X-link: facebookresearch/fbpcp#400

## Context
We want to enable customized containers in our infra ([design doc](https://docs.google.com/document/d/1UqaK6VXEoIVUHSJnYs_Ydju8)). Therefore we need to add cpu & memory properties to ContainerInstance;
## This commit
Change ```PCSContainerInstance``` to use keyword arguments to prevent breaks when we add cpu and memory to ```ContainerInstance ``` later

Differential Revision: D38553232

fbshipit-source-id: b96624305a4443e5ec7801d0f44f258132bceba0
facebook-github-bot pushed a commit to facebookresearch/fbpcs that referenced this pull request Aug 10, 2022
Summary:
Pull Request resolved: #1421

X-link: facebookresearch/fbpcp#400

## Context
We want to enable customized containers in our infra ([design doc](https://docs.google.com/document/d/1UqaK6VXEoIVUHSJnYs_Ydju8)). Therefore we need to add cpu & memory properties to ContainerInstance;
## This commit
Change ```PCSContainerInstance``` to use keyword arguments to prevent breaks when we add cpu and memory to ```ContainerInstance ``` later

Reviewed By: joe1234wu

Differential Revision: D38553232

fbshipit-source-id: b0a004a5435e08737ac9e86243bb06b9dfbb9a27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants