[#85] Add s3 lifecycler #87
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-dev-env#87
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "pogpp/frostfs-dev-env:feature/85_add_lifecycler"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
close #85
Signed-off-by: Pavel Pogodaev p.pogodaev@yadro.com
a0d42eb6b7
tod3f0e86d68
WIP: [#85] Add s3 lifecyclerto [#85] Add s3 lifecyclerd3f0e86d68
tod67680c17d
@ -36,2 +36,4 @@
S3_GW_IMAGE=truecloudlab/frostfs-s3-gw
# Lifecycler
S3_LIFECYCLER_VERSION=755083e36f
Why don't we use version
0.1.3
? https://hub.docker.com/r/truecloudlab/frostfs-s3-lifecycler/tags@ -0,0 +1,2 @@
IPV4_PREFIX.82 s3.LOCAL_DOMAIN
IPV4_PREFIX.82 *.s3.LOCAL_DOMAIN
It seems this file should be
@ -0,0 +1,66 @@
# Basenet settings
This file should be link (see example in
s3_gate/.env
or any other dir)The same for
.int_test.env
@ -0,0 +6,4 @@
address: :9090
# Interval to check node health
rebalance_interval: 30s
This param should be in
frostfs
section see https://git.frostfs.info/TrueCloudLab/frostfs-s3-lifecycler/src/branch/master/docs/configuration.md@ -0,0 +9,4 @@
rebalance_interval: 30s
# Timeout to check node health during rebalance
healthcheck_timeout: 15s
This param should be in
frostfs
section see https://git.frostfs.info/TrueCloudLab/frostfs-s3-lifecycler/src/branch/master/docs/configuration.md@ -0,0 +12,4 @@
healthcheck_timeout: 15s
# Timeout to connect to a node
connect_timeout: 10s
This param should be in
frostfs
section see https://git.frostfs.info/TrueCloudLab/frostfs-s3-lifecycler/src/branch/master/docs/configuration.md@ -0,0 +18,4 @@
max_clients_count: 100
# Deadline after which the gate sends error `RequestTimeout` to a client
max_clients_deadline: 30s
These params (
max_clients_count
,max_clients_deadline
,resolve_order
) aren't applicable to s3-lifecyclerWe should add
credential
section into config (this section should contain wallet fromfrostfs-dev-env/wallets/wallet.json
) https://git.frostfs.info/TrueCloudLab/frostfs-s3-lifecycler/src/branch/master/docs/configuration.md#credential-sectioncredential
section still doesn't contains walletfrostfs-dev-env/wallets/wallet.json
@ -0,0 +1,22 @@
-----BEGIN CERTIFICATE-----
We don't need this file
@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
We don't need this file
@ -0,0 +49,4 @@
- S3_LIFECYCLER_PEERS_3_ADDRESS=s04.${LOCAL_DOMAIN}:8080
- S3_LIFECYCLER_PEERS_3_WEIGHT=0.2
- S3_LIFECYCLER_SERVER_0_ADDRESS=s3.${LOCAL_DOMAIN}:8080
- S3_LIFECYCLER_LISTEN_DOMAINS=s3.${LOCAL_DOMAIN}
Lifecycler doesn't have such variable
@ -0,0 +39,4 @@
- S3_LIFECYCLER_MORPH_RECONNECT_DIAL_TIMEOUT=5s
- S3_LIFECYCLER_MORPH_CONTRACT_NETMAP=netmap.frostfs
- S3_LIFECYCLER_MORPH_CONTRACT_FROSTFSID=frostfsid.frostfs
- S3_LIFECYCLER_MORPH_CONTRACT_CONTAINER=container.frostfs
These variable can be omitted or moved to
cfg/config.yml
@ -0,0 +28,4 @@
- S3_LIFECYCLER_CREDENTIAL_SOURCE_WALLETS_0_PASSPHRASE="cycle"
- S3_LIFECYCLER_LIFECYCLE_JOB_FETCHER_BUFFER=1000
- S3_LIFECYCLER_LIFECYCLE_EXECUTOR_POOL_SIZE=100
- S3_LIFECYCLER_LIFECYCLE_SERVICES=031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a
We can omit this param
@ -0,0 +26,4 @@
- S3_LIFECYCLER_CREDENTIAL_SOURCE_WALLETS_0_PATH=./wallet.json
- S3_LIFECYCLER_CREDENTIAL_SOURCE_WALLETS_0_ADDRESS=NTt1rxvmEDxEuuogLxs2xgxA71qhVaUcN7
- S3_LIFECYCLER_CREDENTIAL_SOURCE_WALLETS_0_PASSPHRASE="cycle"
- S3_LIFECYCLER_LIFECYCLE_JOB_FETCHER_BUFFER=1000
Please keep here only variable that use
${LOCAL_DOMAIN}
. Other params move tocfg/conig.yml
and omit them if they have default valuesPlease, add
close #85
to PR descriptiond67680c17d
to84f884da81
84f884da81
to45d3793406
45d3793406
to4772731866
@ -0,0 +17,4 @@
- ./../../vendor/hosts:/etc/hosts
- ./cfg:/etc/frostfs/s3-lifecycler
stop_signal: SIGKILL
env_file: [ ".env", ".s3_lifecycler.env", ".int_test.env" ]
Actually, I'm not sure if we need
.s3_lifecycler.env
. Can we drop this file at all?@ -0,0 +2,4 @@
level: debug
prometheus:
enabled: false
Let's enable metrics.
Probably we should choose another port (but it should be checked)
4772731866
to0abfd23211
0abfd23211
tofd6ff3d087
fd6ff3d087
toab1a19eb32
ab1a19eb32
toa0fdaebbf4
LGTM