°Ô½Ã¹° 1,369°Ç
   
pg autoscale_mode
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2022-06-24 (±Ý) 16:51 Á¶È¸ : 618
±ÛÁÖ¼Ò :
                                


Placement group auto-scaling

±âÁ¸ Ç®¿¡ ´ëÇÑ ÀÚµ¿ Å©±â Á¶Á¤ ¸ðµå¸¦ ¼³Á¤ÇÏ·Á¸é ´ÙÀ½À» ¼öÇàÇÕ´Ï´Ù.

ceph osd pool set <pool-name> pg_autoscale_mode <mode>

¿¹¸¦ µé¾î foo Ç®¿¡¼­ ÀÚµ¿ Å©±â Á¶Á¤À» »ç¿ëÇϵµ·Ï ¼³Á¤ÇÕ´Ï´Ù.

$ ceph osd pool set foo pg_autoscale_mode on

# Àüü Ç® Àû¿ë
$ for i in `ceph osd pool ls`; do echo $i; ceph osd pool set $i pg_autoscale_mode on; done

# Àû¿ë »óÅ ȮÀÎ
$ ceph osd pool autoscale-status

±âº» pg_autoscale_mode °ªÀ» ¼³Á¤ÇÏ¿© ÀÌÈÄ »ý¼ºµÇ´Â ¸ðµç Ç®¿¡ µ¿ÀÏÇÏ°Ô Àû¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. (off, warn, on)

ceph config set global osd_pool_default_pg_autoscale_mode <mode off, warn, on>

¸ðµç Ç®¿¡ ´ëÇØ noautoscale Ç÷¡±×¸¦ ÀÌ¿ëÇÏ¿© ÀÚµ¿ ½ºÄÉÀÏ·¯¸¦ È°¼º/ºñÈ°¼º È­ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ Ç÷¡±×´Â off°¡ ±âº»°ªÀÌ¸ç ¾Æ·¡ ¸í·É¾î·Î on»óÅ·Πº¯°æ °¡´ÉÇÕ´Ï´Ù.

ceph osd pool set noautoscale

¾Æ·¡ ¸í·ÉÀ» »ç¿ëÇÏ¿© off ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

ceph osd pool unset noautoscale

get ¿É¼ÇÀ¸·Î ÇöÀç »óŸ¦ È®ÀÎ ÇÒ ¼ö ÀÖ½À´Ï´Ù.

ceph osd pool get noautoscale

ÀÌ ¸í·ÉÀ» »ç¿ëÇÏ¿© °¢ Ç®, »ó´ë »ç¿ë·ü ¹× PG Ä«¿îÆ®¿¡ ´ëÇÑ Á¦¾ÈµÈ º¯°æ »çÇ×À» º¼ ¼ö ÀÖ½À´Ï´Ù.

ceph osd pool autoscale-status

Ãâ·ÂÀº ´ÙÀ½°ú °°½À´Ï´Ù.

POOL    SIZE  TARGET SIZE  RATE  RAW CAPACITY   RATIO  TARGET RATIO  EFFECTIVE RATIO BIAS PG_NUM  NEW PG_NUM  AUTOSCALE BULK
a     12900M                3.0        82431M  0.4695                                          8         128  warn      True
c         0                 3.0        82431M  0.0000        0.2000           0.9884  1.0      1          64  warn      True
b         0        953.6M   3.0        82431M  0.0347                                          8    

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.