Skip to content

Commit 838407a

Browse files
committed
(site/cp/cluster/lsstcam-ccs) add s3nd
1 parent 575cb19 commit 838407a

File tree

4 files changed

+63
-2
lines changed

4 files changed

+63
-2
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,32 @@ s3daemon::instances:
1919
env:
2020
S3_ENDPOINT_URL: "https://s3.cp.lsst.org"
2121
S3DAEMON_PORT: 15570
22+
S3DAEMON_HOST: "0.0.0.0" # allow connections from other nodes for testing
23+
cp-lsstcam-s3nd:
24+
image: "%{alias('s3nd_default_image')}"
25+
env:
26+
S3ND_ENDPOINT_URL: "https://s3.cp.lsst.org"
27+
S3ND_PORT: 15571
28+
S3ND_HOST: "" # allow connections from other nodes for testing
29+
S3ND_UPLOAD_TIMEOUT: "3s"
30+
S3ND_QUEUE_TIMEOUT: "30s"
31+
S3ND_UPLOAD_MAX_PARALLEL: "25"
32+
S3ND_UPLOAD_TRIES: "5"
2233
sdfembs3-lsstcam:
2334
image: "%{alias('s3daemon_default_image')}"
2435
env:
2536
S3_ENDPOINT_URL: "https://sdfembs3.sdf.slac.stanford.edu"
2637
S3DAEMON_PORT: 15580
38+
S3DAEMON_HOST: "0.0.0.0" # allow connections from other nodes for testing
39+
sdfembs3-lsstcam-s3nd:
40+
image: "%{alias('s3nd_default_image')}"
41+
env:
42+
S3ND_ENDPOINT_URL: "https://sdfembs3.sdf.slac.stanford.edu"
43+
S3ND_PORT: 15581
44+
S3ND_HOST: "" # allow connections from other nodes for testing
45+
S3ND_UPLOAD_TIMEOUT: "10s"
46+
S3ND_QUEUE_TIMEOUT: "30s"
47+
S3ND_UPLOAD_MAX_PARALLEL: "25"
48+
S3ND_UPLOAD_TRIES: "5"
49+
S3ND_UPLOAD_PARTSIZE: "50Mi" # larger than test file size
50+
S3ND_UPLOAD_BWLIMIT: "160Mi"

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ s3daemon::instances:
33
cp-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+
cp-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')}"
69
sdfembs3-lsstcam:
710
aws_access_key_id: "%{alias('s3daemon_test::aws_access_key_id')}"
811
aws_secret_access_key: "%{alias('s3daemon_test::aws_secret_access_key')}"
9-
elqui-lsstcam:
12+
sdfembs3-lsstcam-s3nd:
1013
aws_access_key_id: "%{alias('s3daemon_test::aws_access_key_id')}"
1114
aws_secret_access_key: "%{alias('s3daemon_test::aws_secret_access_key')}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
'S3ND_QUEUE_TIMEOUT' => '30s',
7474
'S3ND_UPLOAD_MAX_PARALLEL' => '25',
7575
'S3ND_UPLOAD_TRIES' => '5',
76-
'S3ND_UPLOAD_PARTSIZE' => '50Mi', # larger than test file size
76+
'S3ND_UPLOAD_PARTSIZE' => '50Mi', # larger than test file size
7777
'S3ND_UPLOAD_BWLIMIT' => '160Mi',
7878
}
7979
)

spec/support/spec/lsstcam.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@
77
env: {
88
'S3_ENDPOINT_URL' => 'https://s3.cp.lsst.org',
99
'S3DAEMON_PORT' => 15_570,
10+
'S3DAEMON_HOST' => '0.0.0.0',
11+
}
12+
)
13+
end
14+
15+
it do
16+
is_expected.to contain_s3daemon__instance('cp-lsstcam-s3nd').with(
17+
image: 'ghcr.io/lsst-dm/s3nd:sha-1a94702',
18+
env: {
19+
'S3ND_ENDPOINT_URL' => 'https://s3.cp.lsst.org',
20+
'S3ND_PORT' => 15_571,
21+
'S3ND_HOST' => '',
22+
'S3ND_UPLOAD_TIMEOUT' => '3s',
23+
'S3ND_QUEUE_TIMEOUT' => '30s',
24+
'S3ND_UPLOAD_MAX_PARALLEL' => '25',
25+
'S3ND_UPLOAD_TRIES' => '5',
1026
}
1127
)
1228
end
@@ -17,6 +33,24 @@
1733
env: {
1834
'S3_ENDPOINT_URL' => 'https://sdfembs3.sdf.slac.stanford.edu',
1935
'S3DAEMON_PORT' => 15_580,
36+
'S3DAEMON_HOST' => '0.0.0.0',
37+
}
38+
)
39+
end
40+
41+
it do
42+
is_expected.to contain_s3daemon__instance('sdfembs3-lsstcam-s3nd').with(
43+
image: 'ghcr.io/lsst-dm/s3nd:sha-1a94702',
44+
env: {
45+
'S3ND_ENDPOINT_URL' => 'https://sdfembs3.sdf.slac.stanford.edu',
46+
'S3ND_PORT' => 15_581,
47+
'S3ND_HOST' => '',
48+
'S3ND_UPLOAD_TIMEOUT' => '10s',
49+
'S3ND_QUEUE_TIMEOUT' => '30s',
50+
'S3ND_UPLOAD_MAX_PARALLEL' => '25',
51+
'S3ND_UPLOAD_TRIES' => '5',
52+
'S3ND_UPLOAD_PARTSIZE' => '50Mi', # larger than test file size
53+
'S3ND_UPLOAD_BWLIMIT' => '160Mi',
2054
}
2155
)
2256
end

0 commit comments

Comments
 (0)