Benchmark-operator: fio-bench/tasks์—์„œ main.yaml์˜ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ๋ฐ˜์˜๋˜์ง€ ์•Š์Œ

์— ๋งŒ๋“  2019๋…„ 03์›” 18์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: cloud-bulldozer/benchmark-operator

์•ˆ๋…•ํ•˜์„ธ์š”,

Fio-bench์˜ ์ž‘๋™ ๋ฐฉ์‹์„ ์ดํ•ดํ•˜๊ธฐ ์œ„ํ•ด main.yaml์„ ์กฐ์ •ํ•˜๋ ค๊ณ  ํ–ˆ์ง€๋งŒ CR์„ ๋ฐฐํฌํ•˜๋ฉด main.yaml์— ๋Œ€ํ•œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ๋ฐ˜์˜๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
์˜ˆ๋ฅผ ๋“ค๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.
Configmap์˜ ์ด๋ฆ„์„ fio-test_shekhar๋กœ ๋ณ€๊ฒฝํ•˜๊ณ  CR์„ ์žฌ๋ฐฐํฌํ•˜๋”๋ผ๋„ configmap์€ ์—ฌ์ „ํžˆ โ€‹โ€‹fio-test๋ผ๋Š” ์ด๋ฆ„์œผ๋กœ ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค.

์ด๋ฆ„: fio ํ…Œ์ŠคํŠธ ์ƒ์„ฑ
k8s:
์ •์˜:
API ๋ฒ„์ „: v1
์ข…๋ฅ˜: ConfigMap
๋ฉ”ํƒ€๋ฐ์ดํ„ฐ:
์ด๋ฆ„: fio-test_shekhar
๋„ค์ž„์ŠคํŽ˜์ด์Šค: '{{ ๋ฉ”ํƒ€.๋„ค์ž„์ŠคํŽ˜์ด์Šค }}'
๋ฐ์ดํ„ฐ:
fiojob: "{{ lookup('ํ…œํ”Œ๋ฆฟ', 'job.fio.seq_write') }}"
์–ธ์ œ: fio.clients > 0

oc ๊ตฌ์„ฑ ๋งต ๊ฐ€์ ธ์˜ค๊ธฐ
์ด๋ฆ„ ๋ฐ์ดํ„ฐ ๋‚˜์ด
๋ฒค์น˜๋งˆํฌ ์—ฐ์‚ฐ์ž ์ž ๊ธˆ 0 3h
ํ”ผ์˜ค ํ…Œ์ŠคํŠธ 1 1h

๋‚ด๊ฐ€ ๋ญ”๊ฐ€๋ฅผ ๋†“์น˜๊ณ  ์žˆ์Šต๋‹ˆ๊นŒ??

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

์ด์— ๋Œ€ํ•ด ๋‚˜๋ˆด๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์š”์ ์€ ์—ญํ• ์ด ๋ณ€๊ฒฝ๋˜๋ฉด ์šด์˜์ž ์ด๋ฏธ์ง€๋ฅผ ๋‹ค์‹œ ๋นŒ๋“œํ•ด์•ผ ํ•œ๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ด ์ž‘์—…์„ ์™„๋ฃŒํ•˜๋ ค๋ฉด operator-sdk๊ฐ€ ํ•„์š”ํ•˜๋ฉฐ ํ˜„์žฌ ํ…Œ์ŠคํŠธ ๋นŒ๋“œ ํ”„๋กœ์„ธ์Šค์— ๋”ฐ๋ผ operator:testing ์ด๋ฏธ์ง€๋ฅผ ์—…๋กœ๋“œํ•˜๋ ค๋ฉด quay.io์˜ ๊ณ„์ •์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

# operator-sdk build quay.io/<username>/benchmark-operator:testing
# docker push quay.io/<username>/benchmark-operator:testing

๋˜ํ•œ quay.io ์ด๋ฏธ์ง€ URL์„ ๊ฐ€๋ฆฌํ‚ค๋„๋ก deploy/operator.yaml์„ ํŽธ์ง‘ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

...
spec:
...
  template:
...
    spec:
...
      containers:
        - name: benchmark-operator
          image: quay.io/<username>/benchmark-operator:testing
...

๋ชจ๋“  3 ๋Œ“๊ธ€

์ด์— ๋Œ€ํ•ด ๋‚˜๋ˆด๋‹ค๊ณ  ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ์š”์ ์€ ์—ญํ• ์ด ๋ณ€๊ฒฝ๋˜๋ฉด ์šด์˜์ž ์ด๋ฏธ์ง€๋ฅผ ๋‹ค์‹œ ๋นŒ๋“œํ•ด์•ผ ํ•œ๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ด ์ž‘์—…์„ ์™„๋ฃŒํ•˜๋ ค๋ฉด operator-sdk๊ฐ€ ํ•„์š”ํ•˜๋ฉฐ ํ˜„์žฌ ํ…Œ์ŠคํŠธ ๋นŒ๋“œ ํ”„๋กœ์„ธ์Šค์— ๋”ฐ๋ผ operator:testing ์ด๋ฏธ์ง€๋ฅผ ์—…๋กœ๋“œํ•˜๋ ค๋ฉด quay.io์˜ ๊ณ„์ •์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

# operator-sdk build quay.io/<username>/benchmark-operator:testing
# docker push quay.io/<username>/benchmark-operator:testing

๋˜ํ•œ quay.io ์ด๋ฏธ์ง€ URL์„ ๊ฐ€๋ฆฌํ‚ค๋„๋ก deploy/operator.yaml์„ ํŽธ์ง‘ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

...
spec:
...
  template:
...
    spec:
...
      containers:
        - name: benchmark-operator
          image: quay.io/<username>/benchmark-operator:testing
...

@shekharberry ํ—ค์ด - ์ง„์ „์ด ์žˆ์—ˆ๋‚˜์š”? ๊ทธ๋ ‡๋‹ค๋ฉด ์ด ๋ฌธ์ œ๋ฅผ ์ข…๋ฃŒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

์˜ˆ, ์ง„ํ–‰ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋„์™€ ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ๋ฌธ์ œ๋ฅผ ์ข…๋ฃŒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰