You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This section contains detailed NeoFS Storage node configuration file description
including default config values and some tips to set up configurable values.
There are some custom types used for brevity:
duration -- string consisting of a number and a suffix. Suffix examples include s (seconds), m (minutes), ms (milliseconds).
size -- string consisting of a number and a suffix. Suffix examples include b (bytes, default), k (kibibytes), m (mebibytes), g (gibibytes).
file mode -- octal number. Usually, it starts with 0 and contain 3 digits, corresponding to file access permissions for user, group and others.
public key -- hex-encoded public key
hash160 -- hex-encoded 20-byte hash of a deployed contract.
Contains override values for NeoFS side-chain contract hashes. Most of the time contract
hashes are fetched from the NNS contract, so this section can be omitted.
Sidechain cache TTL value (min interval between similar calls). Negative value disables caching. Cached entities: containers, container lists, eACL tables.
endpoints
[]string
Ordered array of webSocket N3 endpoint. Only one is connected at a time, the others are for a fallback if any network error appears.
reconnections_number
int
5
Number of reconnection attempts (through the full list provided via endpoints) before RPC connection is considered lost. Non-positive values make no retries.
reconnections_delay
duration
5s
Time interval between attempts to reconnect an RPC node from endpoints if the connection has been lost.
storage section
Local storage engine configuration.
Parameter
Type
Default value
Description
shard_pool_size
int
20
Pool size for shard workers. Limits the amount of concurrent PUT operations on each shard.
shard_ro_error_threshold
int
0
Maximum amount of storage errors to encounter before shard automatically moves to Degraded or ReadOnly mode.
ignore_uninited_shards
bool
false
Flag that specifies whether uninited shards should be ignored.
put_retry_deadline
duration
0
If an object cannot be PUT to storage, node tries to PUT it to the best shard for it (according to placement sorting) and only to it for this long before operation error is returned. Defalt value does not apply any retry policy at all.
Contains configuration for each shard. Keys must be consecutive numbers starting from zero.
default subsection has the same format and specifies defaults for missing values.
The following table describes configuration for each shard.
Parameter
Type
Default value
Description
compress
bool
false
Flag to enable compression.
compression_exclude_content_types
[]string
List of content-types to disable compression for. Content-type is taken from Content-Type object attribute. Each element can contain a star * as a first (last) character, which matches any prefix (suffix).
mode
string
read-write
Shard Mode. Possible values: read-write, read-only, degraded, degraded-read-only, disabled
Default permission for created files and directories.
flush_interval
duration
10ms
Time interval between batch writes to disk.
fstree type options
FSTree stores objects using file system provided by OS. It uses a hierarchy of
directories (tree) based on object ID, directory nesting level is controlled by
depth. To optimize writing performance for small object it can also combine
multiple objects into a single file, this behavior can be controlled as well.
The default FSTree settings are optimized for HDD and small files. In case of
deploying to SSD combined writer is recommended to be disabled completely
(combined_count_limit=1). For medium/large files or smaller drives depth is
recommended to be adjusted to 3 or even lower values. Larger values are only
relevant for big volumes with very high number of stored objects.
Parameter
Type
Default value
Description
path
string
Path to the root of the blobstor.
perm
file mode
0640
Default permission for created files and directories.
depth
int
4
File-system tree depth. Optimal value depends on the number of objects stored in this shard, the number of lower-level directories used by FSTree is 58^depth, with depth 3 this is ~200K, with 4 --- ~11M
no_sync
bool
false
Disable write synchronization, makes writes faster, but can lead to data loss. Not recommended for production use.
combined_count_limit
int
128
Maximum number of objects to write into a single file, 0 or 1 disables combined writing (which is recommended for SSDs).
combined_size_limit
size
8M
Maximum size of a multi-object file.
combined_size_threshold
size
128K
Minimum size of object that won't be combined with others when writing to disk.
peapod type options
Parameter
Type
Default value
Description
path
string
Path to the Peapod database file.
perm
file mode
0640
Default permission for created files and directories.
gc subsection
Contains garbage-collection service configuration. It iterates over the blobstor and removes object the node no longer needs.