Apache HTTP Server Version 2.0
This document refers to the 2.0 version of Apache httpd, which is no longer maintained. Upgrade, and refer to the current version of httpd instead, documented at:
You may follow this link to go to the current version of this document.
¼³¸í: | Ç¥ÁØ worker MPMÀÇ ½ÇÇèÀûÀÎ º¯Çü |
---|---|
»óÅÂ: | MPM |
¸ðµâ¸í: | mpm_leader_module |
¼Ò½ºÆÄÀÏ: | leader.c |
ÀÌ MPMÀº ½ÇÇèÀûÀÎ »óÅ·Î, ±â´ëÇÑ´ë·Î µ¿ÀÛÇÏÁö¾ÊÀ» ¼ö ÀÖ´Ù.
ÀÌ ¸ðµâÀº Ç¥ÁØ worker
MPMÀÇ ½ÇÇèÀûÀÎ
º¯ÇüÀÌ´Ù. ÀÌ ¸ðµâÀº ¾²·¹µå°£ÀÇ Çùµ¿À» À§ÇØ Leader/Followers
µðÀÚÀÎÆÐÅÏÀ» »ç¿ëÇÑ´Ù. ´õ ÀÚ¼¼ÇÑ Á¤º¸´Â http://deuce.doc.wustl.edu/doc/pspdfs/lf.pdf¸¦ Âü°íÇ϶ó.
leader
MPMÀ» »ç¿ëÇÏ·Á¸é,
httpd
¸¦ ÄÄÆÄÀÏÇÒ¶§ configure
½ºÅ©¸³Æ® ¾Æ±Ô¸ÕÆ®¿¡ --with-mpm=leader
¸¦
»ç¿ëÇÑ´Ù.
ÀÌ MPMÀº ¾²·¹µå µ¿±â¸¦ À§ÇØ APRÀÇ atomic compare-and-swap
¸í·ÉÀ» »ç¿ëÇÑ´Ù. x86¿ëÀ¸·Î ÄÄÆÄÀÏÇÏÁö¸¸ 386À» Áö¿øÇÒ ÇÊ¿ä°¡
¾ø°Å³ª, SPARC¿ëÀ¸·Î ÄÄÆÄÀÏÇÏÁö¸¸ UltraSPARC Ĩ ÀÌÀü¿¡¼
½ÇÇàÇÏÁö ¾Ê´Â´Ù¸é, configure
½ºÅ©¸³Æ® ¾Æ±Ô¸ÕÆ®¿¡
--enable-nonportable-atomics=yes
¸¦ »ç¿ëÇ϶ó.
±×·¯¸é APRÀÌ ¿À·¡µÈ CPU¿¡´Â ¾ø´Â ´õ È¿À²ÀûÀÎ ¸í·É¾î¸¦ »ç¿ëÇÏ¿©
atomic ¸í·ÉÀ» ±¸ÇöÇÑ´Ù.