-
Notifications
You must be signed in to change notification settings - Fork 15
Volume managment
Przemysław Rekucki edited this page Jun 28, 2024
·
10 revisions
{ deploy: {
net: [{ id: "id", ip: "10.0.0.2", mask" "255.255.0.0" }],
hosts: {"master": "10.0.0.1"},
nodes: {"10.0.0.1": "0xdeadbeef"},
progress : {updateInterval: "300ms"},
volumes: {
"/": { storage: { size: "10g", errors: "panic" }
}
}
can be in 2 forms. array of string is list that overides image defined volumes. eg.
{
deploy: {
volumes: ["/golem/input", "/golem/output"]
}
}
if it is mapping keys are mount points and values are volume definitions.
for example:
{
deploy: {
volumes: {
"/golem/input": {},
"/golem/output": {}
"/": { ram: { size: 1g" }
}
}
}
Definition for rootfs.
Name | Type | Description | Notes |
---|---|---|---|
size | String | [optional] [default to null] |
Name | Type | Description | Notes |
---|---|---|---|
size | String | format for storage 100m, 10g, etc. | [optional] [default to null] |
preallocate | String | same as size
|
[optional] [default to null] |
errors | String | possible values continue , remount-ro , panic
|
[optional] [default to null] |
- Root file system that can grow upto 1 gigabyte. no preallocation. container will panic if error occurs.
{
deploy: {
volumes: {
"/": { storage: { size: 1g", errors: "panic" }
}
}
}
- Root fs, with prealoocated 10GB storage.
{
deploy: {
volumes: {
"/": { storage: { size: 10g", preallocate: "10g" }
}
}
}
- Root fs with in memory overflow size 1g
{
deploy: {
volumes: {
"/": { tmpfs: { size: 1g" }
}
}
}
- Disable image volume definition for
/golem/input
{
deploy: {
volumes: {
"/golem/input": null
}
}
}