๋ชฉ๋ก๋ฐ์ดํ„ฐ (40)

๐Ÿฅ

[Spark] Speculative Execution

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

๋ฐ์ดํ„ฐ/Spark 2024. 4. 1. 13:27
[Airflow] Telegram ์•Œ๋ฆผ operator ๋งŒ๋“ค๊ธฐ (requests ์‚ฌ์šฉ)

๋ฒ„์ „์ •๋ณด Airflow 2.5.3 Python 3.8 ์™œ์ธ์ง€๋Š” ๋ชจ๋ฅด๊ฒ ์ง€๋งŒ 2.5.3 ๋ฒ„์ „์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” ํ™˜๊ฒฝ์—์„œ๋Š” telegram provider ์„ค์น˜๋Š” ๋˜๋Š”๋ฐ connection type ๋ฆฌ์ŠคํŠธ์—๋Š” ์•ˆ๋–ด๋‹ค ใ…  (๋ฒ„์ „ํ˜ธํ™˜์„ฑ๋„ ๋‹ค ๋งž์ถค) 2.6.3 ๋ฒ„์ „์œผ๋กœ ์˜ฌ๋ฆฌ๊ณ  provider ์žฌ์„ค์น˜ ํ›„ ๋‹ค์‹œ ํ™•์ธํ•ด๋ณด๋‹ˆ operator๊ฐ€ ์ž˜ ๋™์ž‘ํ•˜๋Š” ๊ฑด ํ™•์ธํ–ˆ๋Š”๋ฐ.. ์–ด์จŒ๋“  2.5.3 ๋ฒ„์ „์—์„œ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด request ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ด์šฉํ•ด์„œ post ์š”์ฒญ์„ ๋ณด๋‚ด๋Š” ๋ฐฉ์‹์œผ๋กœ Webhook์„ ๋งŒ๋“ค์—ˆ๋‹ค. 1. Telegram Connection ์ƒ์„ฑ ์ด๊ฑด ๊ทธ๋ƒฅ hook์—์„œ connection ์ •๋ณด ์–ด๋–ป๊ฒŒ ๊ฐ€์ ธ์˜ฌ์ง€ ์ƒํ™ฉ์— ๋งž๊ฒŒ ์„ค์ •ํ•˜๋ฉด ๋  ๋“ฏ ํ•˜๋‹ค. ๋‚˜๊ฐ™์€ ๊ฒฝ์šฐ๋Š” ๊ทธ๋ƒฅ http connection type์„ ์‚ฌ์šฉํ–ˆ๋‹ค. `H..

๋ฐ์ดํ„ฐ 2024. 3. 29. 21:49