Yong Tang
133eec9cfa
Add --cpus flag to control cpu resources
...
This fix tries to address the proposal raised in 27921 and add
`--cpus` flag for `docker run/create`.
Basically, `--cpus` will allow user to specify a number (possibly partial)
about how many CPUs the container will use. For example, on a 2-CPU system
`--cpus 1.5` means the container will take 75% (1.5/2) of the CPU share.
This fix adds a `NanoCPUs` field to `HostConfig` since swarmkit alreay
have a concept of NanoCPUs for tasks. The `--cpus` flag will translate
the number into reused `NanoCPUs` to be consistent.
This fix adds integration tests to cover the changes.
Related docs (`docker run` and Remote APIs) have been updated.
This fix fixes 27921.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
Upstream-commit: 846baf1fd3efcbfbf9d3eb99e436ca9a59d3e185
Component: engine
2016-11-04 09:43:10 -07:00
..
2016-10-25 13:44:52 -07:00
2016-09-07 16:29:02 -07:00
2016-11-01 11:17:33 -07:00
2016-07-28 20:14:14 -04:00
2016-10-18 10:09:50 -07:00
2016-09-07 21:20:41 -07:00
2016-09-07 21:20:41 -07:00
2016-10-24 15:20:01 -07:00
2016-10-19 11:39:00 -04:00
2016-09-30 01:21:05 +00:00
2016-09-30 01:21:05 +00:00
2016-11-01 14:32:32 -07:00
2016-09-30 01:21:05 +00:00
2016-09-30 01:21:05 +00:00
2016-09-30 01:21:05 +00:00
2016-10-31 14:33:59 -07:00
2016-10-20 13:24:23 -07:00
2016-10-31 14:33:59 -07:00
2016-10-31 14:33:59 -07:00
2016-09-30 01:21:05 +00:00
2016-09-30 01:21:05 +00:00
2016-09-30 01:21:05 +00:00
2016-09-30 01:21:05 +00:00
2016-09-30 01:21:05 +00:00
2016-10-31 14:33:59 -07:00
2016-09-30 01:21:05 +00:00
2016-10-24 16:45:17 -07:00
2016-11-02 09:43:29 -07:00
2016-09-30 01:21:05 +00:00
2016-09-07 11:05:58 -07:00
2016-10-31 11:13:41 -04:00
2016-10-11 16:23:35 -07:00
2016-10-05 15:52:09 -07:00
2016-11-02 11:20:54 -07:00
2016-09-30 01:21:05 +00:00
2016-11-03 05:48:49 -07:00
2016-08-23 15:11:46 -04:00
2016-09-13 16:20:10 -04:00
2016-08-30 09:48:18 -07:00
2016-09-30 01:21:05 +00:00
2016-08-30 14:32:10 -07:00
2016-10-29 15:03:26 +08:00
2016-08-30 14:32:10 -07:00
2016-10-17 12:28:46 -07:00
2016-10-24 15:20:01 -07:00
2016-10-21 18:53:37 -07:00
2016-10-28 12:21:54 -07:00
2016-10-27 16:14:13 -07:00
2016-10-20 07:54:31 +08:00
2016-10-19 12:39:25 -02:00
2016-09-12 09:20:27 -07:00
2016-10-24 15:20:01 -07:00
2016-10-27 10:34:38 -07:00
2016-11-03 11:56:44 -04:00
2016-10-28 15:43:04 -04:00
2016-10-24 15:20:01 -07:00
2016-08-30 09:31:33 -07:00
2016-10-13 13:31:52 -07:00
2016-09-01 16:28:22 -07:00
2016-10-24 18:12:28 -07:00
2016-11-02 21:41:29 +01:00
2016-09-29 18:16:36 -07:00
2016-10-31 14:33:59 -07:00
2016-08-23 15:11:46 -04:00
2016-09-07 09:45:42 +02:00
2016-05-06 20:42:20 -04:00
2016-06-02 17:17:22 +08:00
2016-11-03 11:04:37 -07:00
2016-05-10 11:28:00 -07:00
2016-10-11 16:23:35 -07:00
2016-11-02 17:03:46 -07:00
2016-09-30 01:21:05 +00:00
2016-10-25 06:43:54 +00:00
2016-10-28 15:43:04 -04:00
2016-09-07 09:45:42 +02:00
2016-09-09 11:40:34 -07:00
2016-10-14 17:53:34 -07:00
2016-09-01 15:18:15 -07:00
2016-08-08 11:40:20 +08:00
2016-08-25 16:29:08 -07:00
2016-08-09 09:42:23 +08:00
2016-09-07 17:30:35 -04:00
2016-11-03 07:08:59 +00:00
2016-11-04 09:43:10 -07:00
2016-08-10 08:36:09 +08:00
2016-10-31 15:30:55 +02:00
2016-06-03 19:50:01 +02:00
2016-09-07 11:05:58 -07:00
2016-09-29 07:44:00 -07:00
2016-09-26 17:18:02 +08:00
2016-09-07 16:29:02 -07:00
2016-10-24 15:20:01 -07:00
2016-10-11 16:23:35 -07:00
2016-11-03 15:56:35 -07:00
2016-06-01 09:44:25 -07:00
2016-09-07 16:29:02 -07:00
2016-08-16 15:36:13 +08:00
2016-09-07 11:05:58 -07:00
2016-09-05 13:02:13 +03:00
2016-10-20 05:14:27 -07:00
2016-09-30 01:21:05 +00:00
2016-06-01 22:25:17 +08:00
2016-10-24 15:20:01 -07:00
2016-07-28 20:14:14 -04:00
2016-10-24 15:20:01 -07:00
2016-11-01 11:17:33 -07:00
2016-09-12 07:36:52 +00:00
2016-09-12 12:55:26 -07:00
2016-09-07 17:30:35 -04:00
2016-08-10 08:36:09 +08:00
2016-10-10 19:29:02 +01:00
2016-10-24 15:20:01 -07:00
2016-09-07 16:29:02 -07:00
2016-09-07 16:29:02 -07:00
2016-09-07 16:29:02 -07:00
2016-09-02 19:07:54 -07:00
2016-08-23 15:11:46 -04:00