Skip to content

Simplify peers config #1164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This document outlines major changes between releases.
### Changed
- AWS SDK migrated to V2 (#1028)
- Bucket ownership settings moved from EACL to bucket settings meta objects (#1120)
- Peers list definition in config files (#1149)

### Fixed

Expand All @@ -21,6 +22,22 @@ This document outlines major changes between releases.
authmate tool "reset-bucket-acl" command was updated to clean redundant EACL records. These settings were moved to
bucket settings object.

Updating peers config should be done from old format:
```yaml
peers:
0:
address: node1.neofs:8080
priority: 1
weight: 1
```
to the new one:
```yaml
peers:
- address: node1.neofs:8080
priority: 1
weight: 1
```

## [0.36.1] - 2025-04-09

### Fixed
Expand Down
6 changes: 6 additions & 0 deletions config/config.env
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ S3_GW_SERVER_1_TLS_ENABLED=true
S3_GW_SERVER_1_TLS_CERT_FILE=/path/to/tls/cert
S3_GW_SERVER_1_TLS_KEY_FILE=/path/to/tls/key

# RPC endpoints
S3_GW_FSCHAIN_ENDPOINTS=http://localhost:30333

# Use space to set few endpoints
# S3_GW_FSCHAIN_ENDPOINTS="http://localhost:30333 http://localhost:30334"

# Domains to be able to use virtual-hosted-style access to bucket.
S3_GW_LISTEN_DOMAINS=s3dev.neofs.devenv

Expand Down
9 changes: 3 additions & 6 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ wallet:
# nodes with other priority are not used.
# The lower the value, the higher the priority.
peers:
0:
address: node1.neofs:8080
- address: node1.neofs:8080
priority: 1
weight: 1
1:
address: node2.neofs:8080
- address: node2.neofs:8080
priority: 2
weight: 0.1
2:
address: node3.neofs:8080
- address: node3.neofs:8080
priority: 2
weight: 0.9

Expand Down
9 changes: 3 additions & 6 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,13 @@ wallet:
# nodes with other priority are not used.
# The lower the value, the higher the priority.
peers:
0:
address: node1.neofs:8080
- address: node1.neofs:8080
priority: 1
weight: 1
1:
address: node2.neofs:8080
- address: node2.neofs:8080
priority: 2
weight: 0.1
2:
address: node3.neofs:8080
- address: node3.neofs:8080
priority: 2
weight: 0.9
```
Expand Down
Loading