Skip to content

Commit 373d734

Browse files
committed
(site/ls/cluster/lsstcam-ccs) add s3nd
1 parent a5059ea commit 373d734

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

hieradata/site/ls/cluster/lsstcam-ccs.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,30 @@ s3daemon::instances:
1919
env:
2020
S3_ENDPOINT_URL: "https://s3.ls.lsst.org"
2121
S3DAEMON_PORT: 15570
22+
S3DAEMON_HOST: "0.0.0.0" # allow connections from other nodes for testing
23+
ls-lsstcam-s3nd: # untuned because s3.ls.lsst.org is currently low performance
24+
image: "%{alias('s3nd_default_image')}"
25+
env:
26+
S3ND_ENDPOINT_URL: "https://s3.ls.lsst.org"
27+
S3ND_PORT: 15571
28+
S3ND_HOST: "" # allow connections from other nodes for testing
29+
s3dfrgw-lsstcam:
30+
image: "%{alias('s3daemon_default_image')}"
31+
env:
32+
S3_ENDPOINT_URL: "https://s3dfrgw.slac.stanford.edu"
33+
S3DAEMON_PORT: 15580
34+
S3DAEMON_HOST: "0.0.0.0" # allow connections from other nodes for testing
35+
# needs to be tuned for s3dfrgw; tests in 2024 shows s3dfrgw as having very
36+
# slow performance compared to sdfembs3
37+
s3dfrgw-lsstcam-s3nd:
38+
image: "%{alias('s3nd_default_image')}"
39+
env:
40+
S3ND_ENDPOINT_URL: "https://s3dfrgw.slac.stanford.edu"
41+
S3ND_PORT: 15581
42+
S3ND_HOST: "" # allow connections from other nodes for testing
43+
S3ND_UPLOAD_TIMEOUT: "10s"
44+
S3ND_QUEUE_TIMEOUT: "30s"
45+
S3ND_UPLOAD_MAX_PARALLEL: "25"
46+
S3ND_UPLOAD_TRIES: "5"
47+
S3ND_UPLOAD_PARTSIZE: "50Mi" # larger than test file size
48+
S3ND_UPLOAD_BWLIMIT: "160Mi"

spec/fixtures/hieradata/site/ls/cluster/lsstcam-ccs.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,12 @@ s3daemon::instances:
33
ls-lsstcam:
44
aws_access_key_id: "%{alias('s3daemon_test::aws_access_key_id')}"
55
aws_secret_access_key: "%{alias('s3daemon_test::aws_secret_access_key')}"
6+
ls-lsstcam-s3nd:
7+
aws_access_key_id: "%{alias('s3daemon_test::aws_access_key_id')}"
8+
aws_secret_access_key: "%{alias('s3daemon_test::aws_secret_access_key')}"
9+
s3dfrgw-lsstcam:
10+
aws_access_key_id: "%{alias('s3daemon_test::aws_access_key_id')}"
11+
aws_secret_access_key: "%{alias('s3daemon_test::aws_secret_access_key')}"
12+
s3dfrgw-lsstcam-s3nd:
13+
aws_access_key_id: "%{alias('s3daemon_test::aws_access_key_id')}"
14+
aws_secret_access_key: "%{alias('s3daemon_test::aws_secret_access_key')}"

spec/hosts/nodes/lsstcam-dc01.ls.lsst.org_spec.rb

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,46 @@
3535
env: {
3636
'S3_ENDPOINT_URL' => 'https://s3.ls.lsst.org',
3737
'S3DAEMON_PORT' => 15_570,
38+
'S3DAEMON_HOST' => '0.0.0.0',
39+
}
40+
)
41+
end
42+
43+
it do
44+
is_expected.to contain_s3daemon__instance('ls-lsstcam-s3nd').with(
45+
image: 'ghcr.io/lsst-dm/s3nd:sha-1a94702',
46+
env: {
47+
'S3ND_ENDPOINT_URL' => 'https://s3.ls.lsst.org',
48+
'S3ND_PORT' => 15_571,
49+
'S3ND_HOST' => '',
50+
}
51+
)
52+
end
53+
54+
it do
55+
is_expected.to contain_s3daemon__instance('s3dfrgw-lsstcam').with(
56+
image: 'ghcr.io/lsst-dm/s3daemon:sha-57e1aa9',
57+
env: {
58+
'S3_ENDPOINT_URL' => 'https://s3dfrgw.slac.stanford.edu',
59+
'S3DAEMON_PORT' => 15_580,
60+
'S3DAEMON_HOST' => '0.0.0.0',
61+
}
62+
)
63+
end
64+
65+
it do
66+
is_expected.to contain_s3daemon__instance('s3dfrgw-lsstcam-s3nd').with(
67+
image: 'ghcr.io/lsst-dm/s3nd:sha-1a94702',
68+
env: {
69+
'S3ND_ENDPOINT_URL' => 'https://s3dfrgw.slac.stanford.edu',
70+
'S3ND_PORT' => 15_581,
71+
'S3ND_HOST' => '',
72+
'S3ND_UPLOAD_TIMEOUT' => '10s',
73+
'S3ND_QUEUE_TIMEOUT' => '30s',
74+
'S3ND_UPLOAD_MAX_PARALLEL' => '25',
75+
'S3ND_UPLOAD_TRIES' => '5',
76+
'S3ND_UPLOAD_PARTSIZE' => '50Mi', # larger than test file size
77+
'S3ND_UPLOAD_BWLIMIT' => '160Mi',
3878
}
3979
)
4080
end

0 commit comments

Comments
 (0)