Apache HTTP Server Version 2.2
This document refers to a legacy release (2.2) of Apache httpd. The active release (2.4) is documented here. If you have not already upgraded, please follow this link for more information.
You may follow this link to go to the current version of this document.
¼³¸í: | URI¸¦ Å°·Î »ç¿ëÇÏ¿© ³»¿ëÀ» ij½¬ÇÑ´Ù. |
---|---|
»óÅÂ: | Experimental |
¸ðµâ¸í: | mem_cache_module |
¼Ò½ºÆÄÀÏ: | mod_mem_cache.c |
ÀÌ ¸ðµâÀ» »ç¿ëÇÏ·Á¸é mod_cache
°¡
ÇÊ¿äÇÏ´Ù. ÀÌ ¸ðµâÀº mod_cache
¸¦
Áö¿øÇÏ¸ç ¸Þ¸ð¸®±â¹Ý ÀúÀå°ü¸®ÀÚ¸¦ Á¦°øÇÑ´Ù.
mod_mem_cache
´Â ÆÄÀϱâ¼úÀÚ¸¦ ij½¬¿¡ ÀúÀåÇϰųª
°´Ã¼¸¦ Èü °ø°£¿¡ ij½¬ÇÏ´Â µÎ°¡Áö ¹æ½ÄÀ¸·Î µ¿ÀÛÇÑ´Ù.
mod_mem_cache
´Â Á÷Á¢ ¼¹ö°¡ »ý¼ºÇÑ ÆäÀÌÁö¸¦
ij½¬Çϰųª ProxyPass
·Î
¼³Á¤ÇÑ (¿ªÇÁ·Ï½Ã(reverse proxy))
mod_proxy
ÀÇ µÞ´Ü ¼¹ö³»¿ëÀ» ij½¬ÇÒ¶§ ÁÖ·Î
»ç¿ëÇÑ´Ù.
³»¿ëÀº URI¸¦ Å°·Î »ç¿ëÇÏ¿© ij½¬¿¡ ÀúÀåÇÏ°í °¡Á®¿Â´Ù. Á¢±ÙÀ» Á¦¾îÇÏ´Â ³»¿ëÀº ij½¬¿¡ ÀúÀåÇÏÁö ¾Ê´Â´Ù.
¼³¸í: | ij½¬¿¡ ÀúÀåÇÒ ¼ö ÀÖ´Â ÃÖ´ë °´Ã¼°³¼ö |
---|---|
¹®¹ý: | MCacheMaxObjectCount value |
±âº»°ª: | MCacheMaxObjectCount 1009 |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheMaxObjectCount
Áö½Ã¾î´Â
ij½¬ÇÒ ¼ö ÀÖ´Â ÃÖ´ë °´Ã¼°³¼ö¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ °ªÀº Çؽ¬Å×À̺íÀ»
¸¸µé¶§ »ç¿ëÇÑ´Ù. »õ·Î¿î °´Ã¼¸¦ ij½¬¿¡ Ãß°¡ÇØ¾ß Çϴµ¥ ÃÖ´ë
°´Ã¼°³¼ö¿¡ µµ´ÞÇÏ¿´´Ù¸é, »õ·Î¿î °´Ã¼¸¦ ij½¬ÇÒ ¼ö ÀÖµµ·Ï
´Ù¸¥ °´Ã¼¸¦ Á¦°ÅÇÑ´Ù. MCacheRemovalAlgorithm
À¸·Î
ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© Á¦°ÅÇÒ °´Ã¼¸¦ ¼±ÅÃÇÑ´Ù.
MCacheMaxObjectCount 13001
¼³¸í: | ij½¬¿¡ ÀúÀåÇÒ ¹®¼ÀÇ ÃÖ´ë Å©±â (¹ÙÀÌÆ® ´ÜÀ§) |
---|---|
¹®¹ý: | MCacheMaxObjectSize bytes |
±âº»°ª: | MCacheMaxObjectSize 10000 |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheMaxObjectSize
Áö½Ã¾î´Â ij½¬¿¡
ÀúÀåÇÒ ¹®¼ÀÇ ÃÖ´ë Å©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.
MCacheMaxObjectSize 6400000
MCacheMaxObjectSize
°ªÀº MCacheMinObjectSize
Áö½Ã¾î·Î ÁöÁ¤ÇÑ °ªº¸´Ù Ä¿¾ß ÇÑ´Ù.
¼³¸í: | ÀÀ´äÀ» ij½¬¾ÈÇÑ´Ù°í °áÁ¤Çϱâ Àü±îÁö ¸Þ¸ð¸® ¹öÆÛ¿¡ ÀúÀåÇÒ ½ºÆ®¸² ÀÀ´äÀÇ ÃÖ´ë Å©±â |
---|---|
¹®¹ý: | MCacheMaxStreamingBuffer size_in_bytes |
±âº»°ª: | MCacheMaxStreamingBuffer 100000°ú MCacheMaxObjectSize
Áß¿¡ ÀÛÀº °ª |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheMaxStreamingBuffer
Áö½Ã¾î´Â
ÀÀ´äÀÌ ³Ê¹« Ä¿¼ ij½¬ÇÒ ¼ö ¾øÀ»¶§±îÁö ¹öÆÛ¿¡ ÀúÀåÇÒ ½ºÆ®¸²
ÀÀ´äÀÇ ÃÖ´ë ¹ÙÀÌÆ®¼ö¸¦ ¼³Á¤ÇÑ´Ù. ½ºÆ®¸² ÀÀ´ä(streamed response)Àº
Àüü ³»¿ëÀ» Áï½Ã ¾Ë ¼ö ¾ø°í Content-Length
µµ
¸ð¸£´Â ÀÀ´äÀÌ´Ù. ÇÁ·Ï½ÃµÈ ÀÀ´äÀ̳ª CGI ½ºÅ©¸³Æ®ÀÇ Ãâ·ÂÀÌ
½ºÆ®¸² ÀÀ´ä¿¡ ¼ÓÇÑ´Ù. ±âº»ÀûÀ¸·Î Content-Length
Çì´õ°¡ ¾ø´Ù¸é ½ºÆ®¸² ÀÀ´äÀ» ij½¬¿¡ ÀúÀåÇÏÁö ¾Ê´Â´Ù.
ÀÌÀ¯´Â ij½¬¿¡ ÀúÀåÇϱ⿡ ³Ê¹« Å« ÀÀ´äÀÇ ÀϺθ¦ ¹öÆÛ¿¡
ÀúÀåÇϱâÀ§ÇØ ¸¹Àº ¸Þ¸ð¸®¸¦ ³¶ºñÇÏÁö ¾Ê±âÀ§ÇؼÀÌ´Ù.
MCacheMaxStreamingBuffer
Áö½Ã¾î¸¦
»ç¿ëÇϸé Content-Length
°¡ ¾ø´Â ½ºÆ®¸² ÀÀ´äÀ»
ÁöÁ¤ÇÑ Å©±â±îÁö¸¸ ¹öÆÛ¿¡ ÀúÀåÇÑ´Ù. ÃÖ´ë Å©±â¸¦ ³Ñ¾î¼¸é
¹öÆÛ ³»¿ëÀ» ¹ö¸®°í ij½¬ÇÏÁö ¾Ê´Â´Ù.
MCacheMaxStreamingBuffer
¿¡ 0ÀÌ
¾Æ´Ñ °ªÀ» ¼³Á¤ÇÏ¿©µµ Ŭ¶óÀ̾ðÆ®·Î ÀÀ´äÀ» ´Ê°Ô º¸³»Áö ¾Ê´Â´Ù.
mod_mem_cache
´Â ½ºÆ®¸² ÀÀ´äÀÇ ÀϺθ¦
¹öÆÛ¿¡ º¹»çÇÏÀÚ¸¶ÀÚ Å¬¶óÀ̾ðÆ®·Î º¸³»±âÀ§ÇØ ´ÙÀ½ Ãâ·ÂÇÊÅÍ·Î
º¸³½´Ù.
# ½ºÆ®¸² ÀÀ´äÀ» 64KB±îÁö ij½¬ÇÑ´Ù:
MCacheMaxStreamingBuffer 65536
¼³¸í: | ij½¬¿¡ ÀúÀåÇÒ ¹®¼ÀÇ ÃÖ¼Ò Å©±â (¹ÙÀÌÆ® ´ÜÀ§) |
---|---|
¹®¹ý: | MCacheMinObjectSize bytes |
±âº»°ª: | MCacheMinObjectSize 0 |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheMinObjectSize
Áö½Ã¾î´Â ij½¬¿¡
ÀúÀåÇÒ ¹®¼ÀÇ ÃÖ¼Ò Å©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.
MCacheMinObjectSize 10000
¼³¸í: | ij½¬¿¡¼ Á¦°ÅÇÒ ¹®¼¸¦ ã´Â ¾Ë°í¸®Áò |
---|---|
¹®¹ý: | MCacheRemovalAlgorithm LRU|GDSF |
±âº»°ª: | MCacheRemovalAlgorithm GDSF |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheRemovalAlgorithm
Áö½Ã¾î´Â
ij½¬¿¡¼ Á¦°ÅÇÒ ¹®¼¸¦ ã´Â ¾Ë°í¸®ÁòÀ» ÁöÁ¤ÇÑ´Ù.
LRU
(Least Recently Used)LRU
´Â °¡Àå ¿À·¡µ¿¾È Á¢±ÙÇÏÁö ¾ÊÀº ¹®¼¸¦
¸ÕÀú Á¦°ÅÇÑ´Ù.GDSF
(GreadyDual-Size)GDSF
´Â ij½¬ ½ÇÆÐ(cache miss) ºñ¿ë°ú ¹®¼ÀÇ
Å©±â¸¦ °¡Áö°í ij½¬ÇÑ ¹®¼¿¡ ¿ì¼±¼øÀ§¸¦ ºÎ¿©ÇÑ´Ù. °¡Àå
¿ì¼±¼øÀ§°¡ ³·Àº ¹®¼¸¦ ¸ÕÀú Á¦°ÅÇÑ´Ù.
MCacheRemovalAlgorithm GDSF
MCacheRemovalAlgorithm LRU
¼³¸í: | ij½¬¿¡ »ç¿ëÇÒ ÃÖ´ë ¸Þ¸ð¸®·® (KByte ´ÜÀ§) |
---|---|
¹®¹ý: | MCacheSize KBytes |
±âº»°ª: | MCacheSize 100 |
»ç¿ëÀå¼Ò: | ÁÖ¼¹ö¼³Á¤ |
»óÅÂ: | Experimental |
¸ðµâ: | mod_mem_cache |
MCacheSize
Áö½Ã¾î´Â ij½¬¿¡ »ç¿ëÇÒ
ÃÖ´ë ¸Þ¸ð¸®·®À» KByte ´ÜÀ§·Î (1024 ¹ÙÀÌÆ® ´ÜÀ§) ¼³Á¤ÇÑ´Ù.
»õ·Î¿î °´Ã¼À» ij½¬¿¡ Ãß°¡ÇØ¾ß Çϴµ¥ °´Ã¼ÀÇ Å©±â°¡ ³²Àº
¸Þ¸ð¸®º¸´Ù Å©´Ù¸é »õ·Î¿î °´Ã¼À» ij½¬ÇÒ ¼ö ÀÖÀ»¶§±îÁö ´Ù¸¥
°´Ã¼¸¦ Á¦°ÅÇÑ´Ù. MCacheRemovalAlgorithm
À¸·Î
ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© Á¦°ÅÇÒ °´Ã¼¸¦ ¼±ÅÃÇÑ´Ù.
MCacheSize 700000
MCacheSize
°ªÀº MCacheMaxObjectSize
Áö½Ã¾î·Î ÁöÁ¤ÇÑ °ªº¸´Ù Ä¿¾ß ÇÑ´Ù.