- bluefield3 ubuntu NVIDIA DOCA repo ์ค์น ์ NO_PUBKEY ์๋ฌ ํด๊ฒฐ BlueField-2 DPU (Ubuntu 24.04, aarch64)์์ DOCA repository๋ฅผ ์ถ๊ฐํ๋ค๊ฐ GPG ํค ๊ฒ์ฆ ์๋ฌ๋ฐ์ ์๋ฌ ๋ฉ์์งNVIDIA๊ฐ ์๋ดํ๋ ์ ์ฐจ๋๋ก GPG ํค์ repo๋ฅผ ๋ฑ๋กํ ๋ค apt-get update๋ฅผ ํ๋ฉด ๋ค์๊ณผ ๊ฐ์ด ์คํจํ๋ค.W: GPG error: https://linux.mellanox.com/public/repo/doca/latest/ubuntu24.04/aarch64 ./ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F055**********E: The repository 'https://linux.mell.. 2026.05.13
- fleuntd ํ๋๊ทธ๋ก opensearch ์ค์ ํ๊ธฐ(aws opensearch, ์คํ์์ค opensearch) fluentd ์์ ์คํ์์ค opensearch ๋ก ๋ฐ์ดํฐ ๋ณด๋ด๊ธฐ- ์นดํ์นด๋ก ์ปจ์ ๋ฐ๊ฑฐ๋ ๋ก๊ทธ ์์ง ๋ถ๋ถ์ ์๋ต- opensearch ๋ก ๋ฐ์ดํฐ ์ ์ก ๋ถ๋ถ๋ง ๊ธฐ์ฌ @type opensearch hosts "#{ENV['OPENSEARCH_ENDPOINT']}" user "#{ENV['OPENSEARCH_USERNAME']}" password "#{ENV['OPENSEARCH_PASSWORD']}" index_name "#{ENV['INDEX_NAME']}" ssl_verify false reload_connections false verify_os_version_at_startup false default_opensearch_version 2 request_timeout 60s co.. 2025.07.14
- ingest pipeline ์ผ๋ก automatic timestamp ์ฐ๊ธฐ ๋ชฉํopensearch ์ ๋ฐ์ดํฐ๊ฐ ์ธ๋ฑ์ฑ๋ ์๊ฐ์ ๋ณด๊ธฐ ์ํด "timestamp" ํ๋๋ฅผ ์์ฑํ์ฌ ์๋์ผ๋ก ์๊ฐ์ ์ ๋ ฅํด์ค๋ค.๋ฐฐ๊ฒฝ๋ก๊ทธ์ ๋ก๊ทธ๊ฐ ์์ฑ๋ ์๊ฐ์ธ @timestamp ๋ผ๋ ํ๋๊ฐ ์์ง๋ง ํด๋น ์๊ฐ์ด opensearch ์ ์ ์ฌ๋๋ ์๊ฐ์ ์๋๋ค.opensearch ์ ์ ์ฌ ๋๋ ์๊ฐ ํ์ ์ด ํ์ํด์ ingest pipeline์ ์ด์ฉํด์ ์ ์ฌ ์๊ฐ์ ๊ธฐ๋กํด์ค๋ค.ingest pipeline ์ด๋? opensearch ์ธ๋ฑ์ฑ ์ ์ ํ๋ก์ธ์๋ฅผ ํตํด ๋ฐ์ดํฐ๊ฐ์ ๋ํ ์ ๊ฑฐ, ์ถ์ถ๋ฑ ์ ์ฒ๋ฆฌ ๊ณผ์ ์ ์ํํ ์ ์๋ ๊ธฐ๋ฅ์ฌ๋ฌ ์ ์ฒ๋ฆฌ ๊ธฐ๋ฅ์ด ๊ฐ๋ฅํ๋ค. tutorial1) ingest pipeline ์์ฑPUT _ingest/pipeline/${pipeline๋ช }{ "processors": [ .. 2025.07.14
- [OS] [snapshot]k8s bitnami opensearch ๋ก snapshot s3 ์ฐ๊ฒฐํ๊ธฐ(ํ์๋ง) 1. ๋ฐฐ๊ฒฝopensearch ์ ์ค๋ ์ท์ s3 ๋ก ์ ์ฅํ๊ธฐ ์ํจ์ด๋ค2. ํ์ ์์ 1. repository-s3 ํ๋ฌ๊ทธ์ธ ์ค์น2. s3 ์๊ฒฉ์ฆ๋ช (access key, secret key) ์ถ๊ฐ3. ๋ฌธ์ ํ๋ฌ๊ทธ์ธ ์ค์น์ ์๊ฒฉ์ฆ๋ช ์ ํด๋ฌ์คํฐ์ ์ถ๊ฐํ ๋ค, ์ ์ฉ์ ์ํด ํด๋ฌ์คํฐ ์ฌ์์์ด ํ์ํ๋ค. ํ์ง๋ง... docker๋ docker restart ๋ฅผ ํ๋ฉด ํ๋ฌ๊ทธ์ธ, ์๊ฒฉ์ฆ๋ช ์ถ๊ฐํ๊ฒ ๋จ์์์ง๋ง!! k8s pod๋ ์ถ๊ฐํ๊ฒ ์๋จ์์๋ค. ๋ฐ๋ผ์ ์ฌ์์์ด ์ ํ ๋จนํ์ง ์๋๋ค. 4. ํด๊ฒฐ๋ฐฉํฅ๋ณดํต ์ด๋ฐ ๊ฒฝ์ฐ๋ฉด initContainer ๋ฅผ ์ด์ฉํ๋ค. 4-1. s3 plugin ํ์๋ง์ด๊ธฐ ๋๋ฌธ์ s3 plugin ์ zip ํ์ผ๋ก ๋ฐ์์ ํด๋น zip ํ์ผ์ด ํฌํจ๋ docker image๋ฅผ ํ๋ ๋์ด๋ค. ๊ทธ๋ฆฌ๊ณ ์ด imag.. 2025.04.13
- keyword ํ์ ์ผ๋ก ๋งคํ๋ ํ๋์ int ๊ฐ์ผ๋ก ๋ฃ๊ฒ๋๋ค๋ฉด(๊ฒ์, sum ์ฟผ๋ฆฌ) ํ ์คํธ ์ํฉkeyword ๋ก mapping ๋์ด์๋ ํ๋์ int ๊ฐ์ผ๋ก ๋ฐ์ดํฐ๋ฅผ ๋ฃ์๋ค. 1. keyword ํ์ ๋งคํ ํ์ธ # ์ธ๋ฑ์ค์ ๋งคํ ํ ์ด๋ธ ํ์ธGET ${์ธ๋ฑ์ค๋ช }/_mapping2. ํด๋น ์ธ๋ฑ์ค์ size ํ๋๊ฐ์ int ๊ฐ์ธ 1955 ๋ฅผ ๋ฃ์ด๋ณด๊ธฐ("1955" ๊ฐ ์๋ 1955)3. ๋์๋ณด๋ discover์์ ํ์ธํด๋ณด๋ฉด ์ธ๋ป keyword๊ฐ ์๋ int ํ์ ์ธ๊ฒ์ฒ๋ผ ๋ณด์ธ๋ค. ๋ํ int ๋ก ๊ฒ์ํด๋ ๊ฒฐ๊ณผ๊ฐ ๋์จ๋ค. 3-1. keyword ๋ก ์ฟผ๋ฆฌ ์ ๊ฒฐ๊ณผ๋ ์ ๋์จ๋ค3-2. int ๋ก ์ฟผ๋ฆฌ ์ ๊ฒฐ๊ณผ๋ ์ ๋์จ๋ค.keyword ํ์ ์ธ๋ฐ๋ int ๋ก ๊ฒ์์ด ๋๋ ์ด์ ๋?opensearch์ keyword ํ๋๋ ๋ฌธ์์ด ํ์ ์ผ๋ก ์ค๊ณ๋์ด์์ง๋ง ์ซ์๊ฐ์ ๋ฌธ์์ด ํํ๋ก ๊ฒ์ํ ๋ ์๋ ํ์ ๋ณํ(t.. 2025.02.26
- ์ธ๋ฑ์ค์ ์๋ ํ๋๊ฐ ๋์๋ณด๋ discover์์ ์๋ณด์ผ ๋ ๋ฌธ์ ์ํฉGET log-000100/_mapping{ "log-000100": { "mappings": { "dynamic": "false", "properties": { "@timestamp": { "type": "date" }, "account": { "type": "keyword", "ignore_above": 32000 }....์ธ๋ฑ์ค ๋งคํ์๋ ๋ถ๋ช ์กด์ฌํ๋ ํ๋, query ์์๋ ๋์จ๋ค.ํ์ง๋ง opensearch dashboard ์๋ ๋์ค์ง ์๋๋ค.(ํด๋น ์ธ๋ฑ์ค๊ฐ index pattern ์ผ๋ก ์๋ ๊ฒฝ์ฐ) ์ด์ discover๋ ๋์๋ณด๋ ์์ญ์ด์ฌ์ index ์ ์๋ก์ด ํ.. 2025.02.24
- [OS, ES] ์ธ๋ฑ์ค ์์ฑ ๊ฐ์ด๋(component template, index template ์ด์ฉํ๊ธฐ) ๊ทธ๋ฅ ๊ฐ๋จํ๊ฒ ํ๋ ๋ฐฉ๋ฒ๋ ์์ง๋ง ๋งค์ผ 100๊ธฐ๊ฐ๊ฐ ๋๋ ์ธ๋ฑ์ค๋ฅผ ๊ด๋ฆฌํ๋ ์ ์ฅ์์ ์ด๋ ๊ฒ ์ธ๋ฑ์ค๋ฅผ ์์ฑํ๋ค. 1. component template ์์ฑcomponent template ์์ฑ ์ด์ component template์ ์ฌ์ค ์์ฑ์ ์ํด๋ ๋๊ณ index template์ ๋ฐ๋ก ํ๋๋ฅผ ๋ฃ์ด๋ ๋๋ค. component template๋ ์ด๋จ๋ ์์ฑํ๋ฉด ์ข์๊น? ๊ทธ๊ฒ์ ๊ฐ์ setting, mapping ์ ๋ณด๋ฅผ ์ฌ์ฉํ๋ ์ธ๋ฑ์ค ํ ํ๋ฆฟ์ด ๋ง์ ๋ ๊ด๋ฆฌํ์ง ์ข๋ค. ์๋ก๋ ์๋์ ๊ฐ๋ค. ๋ฉํฐ ํ ๋ํธ ํ๊ฒฝ์์ ์ฌ๋ฌ ํ ๋ํธ์ ๊ณตํต ์ธ๋ฑ์ค ํ๋๋ฅผ ๊ด๋ฆฌํ๊ธฐ ์ํด์ component template ์ฌ์ฉ๐firewall ๋ก๊ทธ๋ฅผ ๋ฐ๋ ์ธ๋ฑ์ค ํ ํ๋ฆฟ์ด ์๋ค. ํด๋น ์ธ๋ฑ์ค ํ ํ๋ฆฟ์ A, B, C ํ ๋ํธ ๋ชจ๋ ์กด์ฌ.. 2023.10.04
- [OS] ๋งคํํ๋ ์์ ํ ์ค๋จ ์๊ฐ ์์ด ์์ธ๋ฑ์ฑ ๋ง๋ค๊ธฐ(aliase๋ก ๋ณ๊ฒฝ) ์ด๋ค ์ํฉ์ผ ๋ ์ํํ๋์ง?๋งคํํ ์ด๋ธ์ ํตํด ํ๋๋ฅผ ๊ด๋ฆฌํ๊ณ ์์๋, ์ค๊ฐ์ ํ๋ ํ์ ์ด ์์ ๋๊ฑฐ๋ ํ๋ ์ถ๊ฐ ์ ํ์ฌ ์งํ์ค์ธ ์ธ๋ฑ์ค๋ฅผ ์๋ก์ด ์ธ๋ฑ์ค๋ก ๋ณ๊ฒฝํ์ฌ ๋ณ๊ฒฝ๋ ํ๋๋ฅผ ์ ์ฉํ๊ณ ์ถ์ ๋ 1. ๋งคํ ํ ์ด๋ธ์์ ๋งคํ ์์ 2. ์๋ก์ด ์ธ๋ฑ์ค์ ์๋ฌ๋ ๋ก๊ทธ๊ฐ ๋ค์ด๊ฐ๋์ง ํ์ธPOST log-network-2023.09.12-000029/_doc{ # ์๋ก์ด ํ๋๊ฐ ํฌํจ๋๊ฑฐ๋ ์์ ๋ ํ๋๊ฐ ํฌํจ๋ ๋ก๊ทธ} 3. alise ๋ณ๊ฒฝPOST _aliases{ "actions": [ { "add": { "alias": "log-network", "index": "log-network-2023.09.12-000028", # ์ง๊ธ ์ธ๋ฑ์ค "is_write_index".. 2023.10.04
- [OS] prometheus ์ฐ๊ฒฐํด์ grafana๋ก opensearch(docker) ํด๋ฌ์คํฐ ์ํ ๋ชจ๋ํฐ๋งํ๊ธฐ(ํ์๋ง) ๋ชฉํ์คํ์์น์ prometheus ํ๋ฌ๊ทธ์ธ์ ์ค์นํ์ฌ grafana๋ก opensearch ํด๋ฌ์คํฐ ์ํ๋ฅผ ๋ชจ๋ํฐ๋ง ์ ์ ์กฐ๊ฑดelasticsearch์์๋ kibana์ ํด๋ฌ์คํฐ ์ํ๋ฅผ ๋ชจ๋ํฐ๋ง ํ ์ ์๋ ๋ฉ๋ด๊ฐ ์กด์ฌํ์ง๋ง opensearch ์์๋ ์กด์ฌํ์ง ์๋๋ค(2023.08 ๊ธฐ์ค, ๊ณง ์ถ๊ฐ๋๋ค๊ณ ํ๋ค)docker-compose๋ฅผ ์ด์ฉํ์ฌ opensearch๋ฅผ ์ค์นํ์ ๋ ๊ฒฝ์ฐ์ด๋ค. ํ์๋ง ํ๊ฒฝ์์ zip ํ์ผ๋ก ํ๋ฌ๊ทธ์ธ์ ์ค์ ํด์ค๋ ๊ฒฝ์ฐ์ด๋ค. 1. opensearch_exporter zip ํ์ผ ๋ค์ด๋ฐ๊ธฐํ๋ก๋ฉํ ์ฐ์ค exporter ํ๋ฌ๊ทธ์ธ์ ๋ค์ด๋ฐ์์ผํ๋ค. https://github.com/Aiven-Open/prometheus-exporter-plugin-for-opensearchํด๋น github.. 2023.09.10
- [ES] [snapshot] minio์ ์ค๋ ์ท ์์ฑํ๊ธฐ 8.2 ๋ฒ์ ์ s3 ๋ฆฌํฌ์งํ ๋ฆฌ ํ๋ฌ๊ทธ์ธ์ด elasticsearch์ ํฌํจ๋์ด์์ด ๋ฐ๋ก ์ค์นํ์ง ์์๋ ๋๋ค. https://www.elastic.co/guide/en/elasticsearch/plugins/8.2/repository-s3.html# s3 ํ๋ฌ๊ทธ์ธ์ ์ค์นํ๋ ค๊ณ ํ๋ฉด ๋ค์๊ณผ ๊ฐ์ ๋ฉ์์ง๊ฐ ๋ฌ๋ค ๋ฐ๋ผ์ ๋ฐ๋ก ์ค์นํ์ง ์์๋ ๋๋ค.elasticsearch@e1f8e9abc280:~/bin$ elasticsearch-plugin installrepository-s3 --batch-> Installing repository-s3[repository-s3] is no longer a plugin but instead a module packaged with this distribution of Ela.. 2023.09.10
- [OS] hot-warm๋ ธ๋ ์ฐ๊ฒฐ ์ฐธ๊ณ https://opensearch.org/docs/latest/tuning-your-cluster/index/#advanced-step-7-set-up-a-hot-warm-architecture Creating a clusterCreating a clusteropensearch.org ๐Hot-Warm ๋ ธ๋๋?์คํ ๋ฆฌ์ง์ ๋ฐ๋ฅธ ๋ ธ๋ ๊ตฌ๋ถ์ ํ ์ ์๋ค. SSD ๊ฐ์ด ๋น์ธ๊ณ ์ฟผ๋ฆฌ๊ฐ ๋น ๋ฅธ ์คํ ๋ฆฌ์ง๋ฅผ ์ฌ์ฉํ๋ ๋ ธ๋๋ฅผ hot ๋ ธ๋๋ผ๊ณ ์ง์ ํ ์ ์๋ค. hot๋ ธ๋๋ ๋น ๋ฅด๊ฒ ๊ฒ์์ด ํ์ํ ๋ฐ์ดํฐ๋ค์ ์ ์ฅํ ์ ์๋ค. warm๋ ธ๋๋ hot ์คํ ๋ฆฌ์ง๋ณด๋ค๋ ์ผ ์คํ ๋ฆฌ์ง๋ฅผ ์ฌ์ฉํ๋ค. ์ฌ๊ธฐ์๋ hot๋ ธ๋๋งํผ ๊ฒ์์ด ๋์ง๋ ์์ง๋ง ๊ฒ์์ด ํ์ํ ๋ฐ์ดํฐ๋ฅผ ์ ์ฅํ๋ค. ๐Hot-Warm ๋ ธ๋๋ฅผ ์ฌ์ฉํด์ผ๋๋ ์ด์ ๋ชจ๋ ๋ฐ์ดํฐ.. 2023.09.10