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-03-18 13:38:32 -07:00
2016-11-04 15:22:55 +01:00
2016-10-28 05:20:49 +02:00
2016-10-27 15:29:24 -07:00
2016-11-02 23:16:38 -07:00
2016-11-04 07:59:20 +01:00
2016-09-13 14:21:58 -07:00
2016-03-18 13:38:32 -07:00
2016-03-18 13:38:32 -07:00
2016-05-06 16:08:53 -07:00
2016-04-06 12:12:20 -07:00
2016-09-07 11:05:58 -07:00
2016-09-16 12:27:13 -04:00
2016-09-07 11:05:58 -07:00
2016-09-23 11:30:06 -07:00
2016-10-28 11:06:54 -07:00
2016-10-28 07:56:05 -04:00
2016-10-25 06:43:54 +00:00
2016-10-27 10:34:38 -07:00
2016-10-24 15:20:01 -07:00
2016-08-25 13:09:03 -04:00
2016-10-17 18:48:40 +08:00
2016-10-17 18:48:40 +08:00
2016-11-02 21:41:29 +01:00
2016-10-17 18:48:40 +08:00
2016-10-17 11:48:51 -07:00
2016-10-27 10:34:38 -07:00
2016-09-21 13:29:17 -07:00
2016-10-17 16:50:39 +02:00
2016-10-13 14:51:10 -07:00
2016-11-03 15:56:35 -07:00
2016-09-16 12:27:13 -04:00
2016-09-13 09:55:35 -04:00
2016-10-30 13:12:27 -07:00
2016-10-31 11:16:02 -04:00
2016-10-24 15:20:01 -07:00
2016-03-30 17:25:49 -07:00
2016-03-30 17:25:49 -07:00
2016-11-02 21:41:29 +01:00
2016-10-20 07:54:31 +08:00
2016-10-03 10:40:05 -07:00
2016-11-04 09:43:10 -07:00
2016-05-23 16:37:12 -07:00
2016-11-04 09:43:10 -07:00
2016-11-04 15:45:30 +00:00
2016-11-03 10:05:11 -07:00
2016-11-03 10:05:11 -07:00
2016-11-03 10:05:11 -07:00
2016-11-03 10:05:11 -07:00
2016-09-27 18:06:54 +08:00
2016-10-27 10:34:38 -07:00
2016-09-01 01:07:05 +08:00
2016-09-01 01:07:05 +08:00
2016-10-20 13:24:23 -07:00
2016-09-16 12:27:13 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-27 12:07:35 -07:00
2016-05-23 16:37:12 -07:00
2016-03-30 12:59:50 -07:00
2016-10-24 00:20:36 -07:00
2016-10-20 19:31:24 -07:00
2016-09-07 11:05:58 -07:00
2016-10-27 10:34:38 -07:00
2016-10-27 10:34:38 -07:00
2016-05-21 22:36:11 +02:00
2016-10-27 10:34:38 -07:00
2016-10-06 11:46:24 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-15 18:08:19 -07:00
2016-10-06 17:12:17 -07:00
2016-11-01 13:41:59 -04:00
2016-09-07 11:05:58 -07:00
2016-11-02 21:41:29 +01:00
2016-09-07 11:05:58 -07:00
2016-09-13 09:55:35 -04:00
2016-09-13 09:55:35 -04:00
2016-10-20 17:06:11 +02:00
2016-06-27 10:23:37 -07:00
2016-06-27 10:23:37 -07:00
2016-10-24 11:10:14 -07:00
2016-09-07 11:05:58 -07:00
2016-05-23 16:37:12 -07:00
2016-11-01 23:09:30 +08:00
2016-10-06 22:48:53 -03:00
2016-10-06 22:48:53 -03:00
2016-09-07 11:05:58 -07:00
2016-10-24 00:20:36 -07:00
2016-10-27 10:34:38 -07:00
2016-04-06 14:03:05 -07:00
2016-05-23 16:37:12 -07:00
2016-10-24 00:20:36 -07:00
2016-10-29 15:03:26 +08:00
2016-09-13 09:55:35 -04:00
2016-08-22 13:41:17 -07:00
2016-10-27 10:34:38 -07:00
2016-10-28 08:38:32 +00:00
2016-09-27 12:07:35 -07:00
2016-11-04 09:43:10 -07:00
2016-03-18 13:38:32 -07:00
2016-10-25 06:43:54 +00:00
2016-06-27 19:58:05 -07:00
2016-03-18 13:38:32 -07:00
2016-10-28 07:56:05 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-08-17 09:38:34 -07:00
2016-11-02 21:41:29 +01:00
2016-07-08 17:26:42 -07:00
2016-10-07 12:09:54 -07:00
2016-10-07 12:09:54 -07:00
2016-11-03 13:23:53 -07:00
2016-05-23 16:37:12 -07:00
2016-09-16 11:56:15 -07:00
2016-09-16 11:56:15 -07:00
2016-09-16 11:56:15 -07:00
2016-09-21 12:36:52 +02:00
2016-09-16 11:56:15 -07:00
2016-09-16 11:56:15 -07:00
2016-10-17 12:53:35 -07:00
2016-07-08 05:58:11 +00:00
2016-09-07 11:05:58 -07:00
2016-09-07 16:29:02 -07:00
2016-08-29 10:16:18 +08:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-10-31 11:16:02 -04:00
2016-10-28 08:38:32 +00:00
2016-09-27 12:07:35 -07:00
2016-10-29 15:03:26 +08:00
2016-06-14 16:49:04 -07:00