๋ชฉ๋ก๋ฐ์ดํ„ฐ/Spark (22)

๐Ÿฅ

[Spark] ์ŠคํŒŒํฌ ์Šค์ผ€์ฅด๋ง

Application ์Šค์ผ€์ฅด๋ง ๊ด€๋ จํ•˜์—ฌ https://community.cloudera.com/t5/Community-Articles/Dynamic-Allocation-in-Apache-Spark/ta-p/368095 ์ด์ชฝ์— ์ •๋ฆฌ๊ฐ€ ์ž˜ ๋˜์–ด ์žˆ๋‹ค. SRA(Static Resource Allocation) spark ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์€ ์‹คํ–‰๋˜๊ธฐ ์ „ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ์‚ฌ์šฉํ•  ๋ฆฌ์†Œ์Šค๋ฅผ ๋ฏธ๋ฆฌ ์˜ˆ์•ฝํ•ด๋‘”๋‹ค. ์ด ๋ฆฌ์†Œ์Šค์˜ ์–‘์€ ๊ณ ์ •๋˜์–ด์„œ ๋Ÿฐํƒ€์ž„์ค‘์—๋Š” ๋ณ€๊ฒฝ์ด ๋ถˆ๊ฐ€๋Šฅํ•˜๋‹ค. ๋งŒ์•ฝ ํ• ๋‹น๋œ ๊ฒƒ๋ณด๋‹ค ๋” ๋งŽ์€ ๋ฆฌ์†Œ์Šค๊ฐ€ ํ•„์š”ํ•˜๋‹ค๋ฉด ์‹คํ–‰์‹œ๊ฐ„์ด ๊ธธ์–ด์ง€๊ฑฐ๋‚˜ ์‹คํŒจํ•  ์ˆ˜ ์žˆ๋‹ค. ๋ฆฌ์†Œ์Šค๊ฐ€ ๊ณ ์ •๋˜์–ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ๋งŒ์•ฝ ํ• ๋‹น๋œ ๋ฆฌ์†Œ์Šค๊ฐ€ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ์‚ฌ์šฉ๋˜์ง€ ์•Š๋Š”๋‹ค๋ฉด ๋น„ํšจ์œจ์ ์ธ ๋ฆฌ์†Œ์Šค ํ™œ์šฉ์œผ๋กœ ์ด์–ด์ง€๊ฒŒ ๋œ๋‹ค. ๋˜ํ•œ ๋Ÿฐํƒ€์ž„์ค‘์— ๋ฆฌ์†Œ์Šค๋ฅผ ์กฐ์ •ํ•˜๋Š”๊ฒƒ์ด ๋ถˆ๊ฐ€..

๋ฐ์ดํ„ฐ/Spark 2024. 4. 1. 15:22
[Spark] Speculative Execution

๋ถ„์‚ฐ ํ™˜๊ฒฝ์—์„œ๋Š” ๊ณ ๋ฅด์ง€ ๋ชปํ•œ ๋ฆฌ์†Œ์Šค, ๋ฐ์ดํ„ฐ ๋กœ๋“œ ๋“ฑ task ์‹คํ–‰ ์†๋„๊ฐ€ ๋Š๋ ค์ง€๋Š” ์ƒํ™ฉ์ด ๋งŽ์ด ์žˆ๋‹ค. Speculative Execution ํ•œ ๋‹จ๊ณ„์—์„œ ์—ฌ๋Ÿฌ ์ž‘์—…์˜ ์‹คํ–‰ ์‹œ๊ฐ„์ด ๋‹ค๋ฅผ ์ˆ˜ ์žˆ๋‹ค. ๋‹ค๋ฅธ task์™€ ๋น„๊ตํ•˜์—ฌ ํŠนํžˆ ๋Š๋ฆฌ๊ฒŒ ์‹คํ–‰๋˜๋Š” Task๊ฐ€ ์žˆ์„ ์ˆ˜ ์žˆ๋Š”๋ฐ, ํด๋Ÿฌ์Šคํ„ฐ ๋‚ด ๋…ธ๋“œ์˜ ๊ตฌ์„ฑ ์„ฑ๋Šฅ ์ฐจ์ด, ๋„คํŠธ์›Œํฌ ๋ณ€๋™ ๋“ฑ์˜ ์ด์œ ๊ฐ€ ์žˆ์„ ์ˆ˜ ์žˆ๋‹ค. speculative execution์€ ๋™์ผํ•œ ๋‹จ๊ณ„์— ์˜ค๋žซ๋™์•ˆ ์™„๋ฃŒ๋˜์ง€ ์•Š๋Š” ์ž‘์—…์ด ์žˆ์„ ๊ฒฝ์šฐ, ๋‹ค๋ฅธ ๋…ธ๋“œ์—์„œ ๋™์ผํ•œ ์ž‘์—…์„ ์‹œ์ž‘ํ•˜๊ณ , ๋จผ์ € ์™„๋ฃŒ๋˜๋Š” task๋ฅผ ์„ฑ๊ณต์ฒ˜๋ฆฌํ•˜๊ณ , ์ด์™ธ์˜ ๋‹ค๋ฅธ ์‹œ๋„๋Š” ์ข…๋ฃŒํ•œ๋‹ค. ํด๋Ÿฌ์Šคํ„ฐ ๋‚ด ๋…ธ๋“œ ๊ฐ„ ์„ฑ๋Šฅ ์ฐจ์ด๊ฐ€ ์žˆ๋Š” ๊ฒฝ์šฐ speculative execution ๊ธฐ๋Šฅ์„ ํ™œ์„ฑํ™”ํ•˜๋Š” ๊ฒƒ์ด ์ข‹๋‹ค. ์ฃผ์š” ๊ตฌ์„ฑ ์˜ต์…˜ spark.specul..

๋ฐ์ดํ„ฐ/Spark 2024. 4. 1. 13:27