Parameters
JUICE module parameters (2 total).
The JUICE module has 2 parameters:
juice_cache: shared cache directoryjuice_instances: instance definition dict
Parameter Overview
| Parameter | Type | Level | Description |
|---|---|---|---|
juice_cache | path | C | JuiceFS shared cache directory |
juice_instances | dict | I | JuiceFS instance definition dict (can be empty) |
Level:
C= cluster level,I= instance level.
Default Parameters
Defined in roles/juice/defaults/main.yml:
juice_cache
Parameter: juice_cache, type: path, level: C
Shared local cache directory for all JuiceFS instances, default /data/juice.
JuiceFS isolates caches by filesystem UUID under this directory.
juice_instances
Parameter: juice_instances, type: dict, level: I
Dictionary of instance definitions, usually set at the instance level. The default is an empty dictionary, which deploys no instances. Each key is a filesystem name. Each value is an instance configuration object.
Instance fields:
| Field | Required | Default | Description |
|---|---|---|---|
path | Yes | - | Mount point path |
meta | Yes | - | Metadata engine URL (PostgreSQL recommended) |
data | No | '' | juicefs format options (only effective on first creation) |
unit | No | juicefs-<name> | systemd service name |
mount | No | '' | Extra juicefs mount options |
port | No | 9567 | Metrics port (unique per node) |
owner | No | root | Mount point owner |
group | No | root | Mount point group |
mode | No | 0755 | Mount point permissions |
state | No | create | create / absent |
Note
- Only
juicefs formatusesdata. It does not update an existing filesystem. - Multiple instances on the same node must use different
portvalues.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)