Home
Jiny
Cancel

Elasticsearch 1

Elasticsearch 1 ๐Ÿ’ฟ ํ™˜๊ฒฝ์„ค์ • ๋ฐฉ๋ฒ• elasticsearch.in.sh, elasticsearch.yml์˜ ํŒŒ์ผ์„ ๋ณ€๊ฒฝ es์‹คํ–‰ ์‹œ -D* ๋˜๋Š” โ€“*์˜ต์…˜์„ ์ด์šฉ es ์‹คํ–‰ ํ›„ REST API๋ฅผ ์ด์šฉ yml ํด๋Ÿฌ์Šคํ„ฐ ๋ณ„๋„๋กœ ์„ค์ •ํ•˜์ง€ ์•Š์œผ๋ฉด ํด๋Ÿฌ์Šคํ„ฐ ๋ช…์€ elasticsearch๋กœ ์„ค์ • ...

Elasticsearch 0

Elasticsearch 0 ๐Ÿ’ฟ ๊ฐœ๋… ์•„ํŒŒ์น˜ ๋ฃจ์”ฌ(Lucene) ๊ธฐ๋ฐ˜์˜ ์˜คํ”ˆ์†Œ์Šค ์‹ค์‹œ๊ฐ„ ๋ถ„์‚ฐ ๊ฒ€์ƒ‰ ์—”์ง„์œผ๋กœ JSON ๊ธฐ๋ฐ˜์˜ ๋น„์ •ํ˜• ๋ฐ์ดํ„ฐ ๋ถ„์‚ฐ ๊ฒ€์ƒ‰ ๋ฐ ๋ถ„์„์„ ์ง€์›ํ•œ๋‹ค. ์„ค์น˜์™€ ์„œ๋ฒ„ ํ™•์žฅ์ด ๋งค์šฐ ํŽธ๋ฆฌ ์‹ค์‹œ๊ฐ„ ๊ฒ€์ƒ‰ ์„œ๋น„์Šค ์ง€์›, ๋ถ„์‚ฐ ๋ฐ ๋ณ‘๋ ฌ ์ฒ˜๋ฆฌ, ๊ทธ๋ฆฌ๊ณ  ๋ฉ€ํ‹ฐํ…Œ๋„Œ์‹œ ๊ธฐ๋Šฅ ์ œ๊ณต ํ˜„์žฌ ์›น ๋ฌธ์„œ ๊ฒ€์ƒ‰, ์†Œ์…œ ๋ฐ์ดํ„ฐ ๋ถ„์„, ์‡ผํ•‘๋ชฐ...

Kubernetes network 2

Kubernetes network 2 ๐Ÿ’ฟ ๋ผ์šฐํŒ… & ๋กœ๋“œ ๋ฐธ๋Ÿฐ์‹ฑ ๋„คํŠธ์›Œํฌ์˜ traffic์€ ๊ธฐ๋ณธ์ ์œผ๋กœ ์—ฐ๊ฒฐ(connections) ๊ณผ ์š”์ฒญ(request)๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ๋‹ค. ์ด๋Ÿฌํ•œ traffic์€ osi 4(tcp)๋‚˜ osi 7(http, rpc, etc)์—์„œ ๋™์ž‘ํ•œ๋‹ค. netfilter์˜ Routing Rule์€ IP Packet ๋ ˆ๋ฒจ...

Kubernetes network 1

Kubernetes network 1 ๐Ÿ’ฟ kubernetes ** Docker A pod consists of one or more containers that are collocated on the same host, and are configured to share a network stack and other resources su...

Kubernetes 4

Kubernetes 4 ๐Ÿ’ฟ ํฌ๋“œ์˜ ๋ฌธ์ œ์  ํฌ๋“œ๋Š” ์ผ์‹œ์ ์œผ๋กœ ์ƒ์„ฑํ•œ ์ปจํ…Œ์ด๋„ˆ ์ง‘ํ•ฉ ๋•Œ๋ฌธ์— ํฌ๋“œ๊ฐ€ ์ง€์†์ ์œผ๋กœ ์ƒ๊ฒจ๋‚ฌ์„ ๋•Œ ์„œ๋น„์Šค๋ฅผ ํ•˜๊ธฐ์— ์ ํ•ฉํ•˜์ง€ ์•Š์Œ IP ์ฃผ์†Œ์˜ ์ง€์†์ ์ธ ๋ณ€๋™, ๋กœ๋“œ๋ฐธ๋Ÿฐ์ƒ์„ ๊ด€๋ฆฌํ•ด์ค„ ๋˜ ๋‹ค๋ฅธ ๊ฐ์ฒด๊ฐ€ ํ•„์š” ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด์„œ ์„œ๋น„์Šค๋ผ๋Š” ๋ฆฌ์†Œ์Šค๊ฐ€ ์กด์žฌ ์„œ๋น„์Šค ์„œ๋น„์Šค...

Kubernetes 3

Kubernetes 3 ๐Ÿ’ฟ Deployment ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋‹ค์šด ํƒ€์ž„์—†์ด ์—…๋ฐ์ดํŠธ ๊ฐ€๋Šฅํ•˜๋„๋ก ๋„์™€์ฃผ๋Š” ๋ฆฌ์†Œ์Šค ๋ ˆํ”Œ๋ฆฌ์นด ์…‹๊ณผ ๋ ˆํ”Œ๋ฆฌ์ผ€์ด์…˜ ์ปจํŠธ๋กค๋Ÿฌ ์ƒ์œ„์— ๋ฐฐํฌ๋˜๋Š” ๋ฆฌ์†Œ์Šค ๋ชจ๋“  ํฌ๋“œ๋ฅผ ์—…๋ฐ์ดํŠธํ•˜๋Š” ๋ฐฉ๋ฒ• ์ž ๊น์˜ ๋‹ค์šด ํƒ€์ž„ ๋ฐœ์ƒ(์ƒˆ๋กœ์šด ํฌ๋“œ๋ฅผ ์ƒ์„ฑ์‹œํ‚ค๊ณ  ์ž‘์—…์ด ์™„๋ฃŒ๋˜๋ฉด ์˜ค๋ž˜๋œ ํฌ๋“œ๋ฅผ ์‚ญ์ œ) ...

Kubernetes 2

Kubernetes 2 ๐Ÿ’ฟ Liveness, Readiness, Startup Probes Liveness Probes ์ปจํ…Œ์ด๋„ˆ๊ฐ€ ์‚ด์•„์žˆ๋Š”์ง€ ํŒ๋‹จํ•˜๊ณ  ๋‹ค์‹œ ์‹œ์ž‘ํ•˜๋Š” ๊ธฐ๋Šฅ ์ปจํ…Œ์ด๋„ˆ์˜ ์ƒํƒœ๋ฅผ ์Šค์Šค๋กœ ํŒ๋‹จํ•˜์—ฌ ๊ต์ฐฉ ์ƒํƒœ์— ๋น ์ง„ ์ปจํ…Œ์ด๋„ˆ๋ฅผ ์žฌ์‹œ์ž‘ ๋ฒ„๊ทธ๊ฐ€ ์ƒ๊ฒจ๋„ ๋†’์€ ๊ฐ€์šฉ์„ฑ์„ ๋ณด์ž„ Readiness Probes ํฌ๋“œ๊ฐ€ ์ค€๋น„๋œ ์ƒ...

Spring Web MVC 3

Spring Web MVC 3 ๐Ÿ’ฟ Application Context ๊ณผ Servlet Context Application Context Web Application ์ตœ์ƒ๋‹จ์— ์œ„์น˜ํ•˜๊ณ  ์žˆ๋Š” Context Spring์—์„œ ApplicationContext๋ž€ BeanFactory๋ฅผ ์ƒ์†๋ฐ›๊ณ  ์žˆ๋Š” Context Spring์—์„œ root...

JVM Tunning 2

JVM Tunning 2 ๐Ÿ’ฟ IBM JVM optthruput GC ์˜ต์…˜ -Xgcpolicy: optthuput ์„ค๋ช… default GC ์•Œ๊ณ ๋ฆฌ์ฆ˜. mark-sweep-compact ๋‹จ๊ณ„๋ฅผ ์ˆ˜ํ–‰ํ•˜์—ฌ STW๋กœ ์ผ์‹œ์ •์ง€๋จ. application์ด ๋ณต์žกํ•ด์ง€๊ณ  ๊ทธ์— ...

JVM Tunning 1

JVM Tunning 1 ๐Ÿ’ฟ GC GC(Garbage Collection): ๋”์ด์ƒ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ๊ฐ์ฒด ๋“ฑ์„ ๋ฉ”๋ชจ๋ฆฌ์—์„œ ํ•ด์ œ(์‚ญ์ œ)ํ•˜๋Š” JVM์˜ ์ž‘์—… JVM JVM Heap ๋ฉ”๋ชจ๋ฆฌ ๊ตฌ์กฐ Java์—์„œ GC๋ฅผ ๋„์ž…์ด ๊ฐ€๋Šฅํ–ˆ๋˜ ์ด์œ  weak generational hypothesis ๊ฐ€์„ค๋กœ ์ธํ•ด GC ๋„์ž…์ด ๊ฐ€๋Šฅํ•ด์ง ...