mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 14:14:52 +00:00
feat: define essential container spec parameters
This commit is contained in:
1 parent
d8818ba770
commit
9413f1c0b1
2 files changed
+32
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package api
|
||||
|
||||
type CPUResources struct {
|
||||
// Limit is the maximum amount of CPU nanocores (1000000000 = 1 CPU core) the container can use.
|
||||
Limit int64
|
||||
}
|
||||
|
||||
type MemoryResources struct {
|
||||
// Limit is the maximum amount of memory (in bytes) the container can use.
|
||||
Limit int64
|
||||
// Reservation is the minimum amount of memory (in bytes) the container needs to run efficiently.
|
||||
// TODO: implement a placement constraint that checks available memory on machines.
|
||||
Reservation int64
|
||||
}
|
||||
Reference in new issue
Block a user