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 MemoryReservation support #207

Closed
wants to merge 1 commit into from

Conversation

the40san
Copy link

@the40san the40san commented Feb 21, 2017

closes #145

Added MemoryReservation option for ecs-cli.

Any docker-compose file format has no memory_reservation directive, but Amazon ECS has it.
I think this is effective for production environment.

Could you review this please?

@@ -371,7 +372,8 @@ var servicesSchemaDataV2 = `{
"volumes": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"volume_driver": {"type": "string"},
"volumes_from": {"type": "array", "items": {"type": "string"}, "uniqueItems": true},
"working_dir": {"type": "string"}
"working_dir": {"type": "string"},
"memory_reservation": {"type": "integer"}
Copy link
Contributor

Choose a reason for hiding this comment

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

The vendor directories are auto generated by running godep save ./... in the /ecs-cli directory, and it can be overwritten.

I would prefer to do this the right way by updating libcompose. I've created an issue to see what's their plan of supporting mem_reservation. docker/libcompose#439

Copy link
Author

Choose a reason for hiding this comment

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

I will fix this. Thank you.

@c100k
Copy link

c100k commented Mar 7, 2017

Support for version 2 : docker/compose#4563

@the40san
Copy link
Author

Thank you. I'll start work to fix this.

@yinshiua
Copy link
Contributor

yinshiua commented Apr 3, 2017

@the40san Looks like someone has opened up a PR to use the updated libcompose mem_reservation. :) PR #228

Closing this PR

@yinshiua yinshiua closed this Apr 4, 2017
@the40san the40san deleted the add_memory_reservation branch April 26, 2017 00:17
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.

Feature request: allow to set minimum and maximum memory capacity for a container from a compose file
3 participants