Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
veTurboIO
Commits
22aae50e
Commit
22aae50e
authored
Apr 15, 2024
by
王欣宇
Committed by
huteng.ht
Jun 09, 2024
Browse files
feat: get cfs task id from env
parent
6203d7ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
veturboio/ops/sfcs_utils.py
veturboio/ops/sfcs_utils.py
+1
-1
No files found.
veturboio/ops/sfcs_utils.py
View file @
22aae50e
...
@@ -59,7 +59,6 @@ SFCS_OPT_ENV_LIST = [
...
@@ -59,7 +59,6 @@ SFCS_OPT_ENV_LIST = [
def
default_sfcs_properties
()
->
dict
:
def
default_sfcs_properties
()
->
dict
:
return
{
return
{
'cfs.filesystem.fs-mode'
:
'ACC'
,
'cfs.filesystem.fs-mode'
:
'ACC'
,
'cfs.filesystem.task-id'
:
'sfcs'
,
'cfs.filesystem.resolve.addr.by.dns'
:
'false'
,
'cfs.filesystem.resolve.addr.by.dns'
:
'false'
,
'cfs.metrics.emitters'
:
'metric_server;local_prometheus'
,
'cfs.metrics.emitters'
:
'metric_server;local_prometheus'
,
'cfs.client.metadata-cache.enable'
:
'false'
,
'cfs.client.metadata-cache.enable'
:
'false'
,
...
@@ -182,6 +181,7 @@ def init_sfcs_properties(group: str) -> dict:
...
@@ -182,6 +181,7 @@ def init_sfcs_properties(group: str) -> dict:
properties
[
'dfs.client.log.severity'
]
=
os
.
getenv
(
'SFCS_LOG_SEVERITY'
)
properties
[
'dfs.client.log.severity'
]
=
os
.
getenv
(
'SFCS_LOG_SEVERITY'
)
# optional
# optional
properties
[
'cfs.filesystem.task-id'
]
=
os
.
getenv
(
"SFCS_TASK_ID"
,
"sfcs"
)
properties
[
'cfs.filesystem.sync-interval'
]
=
os
.
getenv
(
'SFCS_SYNC_INTERVAL'
,
"-1"
)
properties
[
'cfs.filesystem.sync-interval'
]
=
os
.
getenv
(
'SFCS_SYNC_INTERVAL'
,
"-1"
)
properties
[
'cfs.access.key'
]
=
os
.
getenv
(
'SFCS_ACCESS_KEY'
)
properties
[
'cfs.access.key'
]
=
os
.
getenv
(
'SFCS_ACCESS_KEY'
)
properties
[
'cfs.secret.key'
]
=
os
.
getenv
(
'SFCS_SECRET_KEY'
)
properties
[
'cfs.secret.key'
]
=
os
.
getenv
(
'SFCS_SECRET_KEY'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment