From: Takashi Sato Date: Wed, 5 Nov 2008 06:49:29 +0000 (+0000) Subject: Remove mod_mem_cache from documents X-Git-Tag: 2.3.0~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9beb12c8dd7cacd570dca13d58fcef0258614f2;p=thirdparty%2Fapache%2Fhttpd.git Remove mod_mem_cache from documents (Sync with r711470) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@711521 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/caching.xml b/docs/manual/caching.xml index 2e8f32b4e75..7fa56102216 100644 --- a/docs/manual/caching.xml +++ b/docs/manual/caching.xml @@ -26,8 +26,7 @@

This document supplements the mod_cache, - mod_disk_cache, mod_mem_cache, - mod_file_cache and mod_disk_cache, mod_file_cache and htcacheclean reference documentation. It describes how to use Apache's caching features to accelerate web and proxy serving, while avoiding common problems and misconfigurations.

@@ -43,7 +42,7 @@ handling, both as an origin webserver and as a proxy.

mod_cache and its provider modules - mod_mem_cache and mod_disk_cache + mod_disk_cache provide intelligent, HTTP-aware caching. The content itself is stored in the cache, and mod_cache aims to honour all of the various HTTP headers and options that control the cachability of content. It can @@ -83,7 +82,6 @@ mod_cache - mod_mem_cache mod_disk_cache mod_file_cache @@ -215,7 +213,8 @@ changed in size or modification time. As such, even if Apache is caching local content, even expired content may still be served faster from the cache if it has not changed. As long as reading from the cache - store is faster than reading from the backend (e.g. an in-memory cache + store is faster than reading from the backend (e.g. mod_disk_cache with memory disk compared to reading from disk).

@@ -396,19 +395,16 @@ Vary: negotiate,accept-language,accept-charset mod_file_cache - mod_mem_cache CacheFile - CacheEnable - CacheDisable

The act of opening a file can itself be a source of delay, particularly on network filesystems. By maintaining a cache of open file descriptors for commonly served files, Apache can avoid this delay. Currently Apache - provides two different implementations of File-Handle Caching.

+ provides one implementation of File-Handle Caching.

CacheFile @@ -447,21 +443,6 @@ Vary: negotiate,accept-language,accept-charset descriptor closed.

-
- CacheEnable fd - -

mod_mem_cache also provides its own file-handle - caching scheme, which can be enabled via the - CacheEnable directive.

- - -
CacheEnable fd /
-
- -

As with all of mod_cache this type of file-handle - caching is intelligent, and handles will not be maintained beyond - the expiry time of the cached content.

-
@@ -469,7 +450,6 @@ Vary: negotiate,accept-language,accept-charset - mod_mem_cache mod_file_cache @@ -535,11 +515,6 @@ sys 0m0.000s caching there are some circumstances in which in-memory caching may be better performed by Apache.

-

Firstly, an operating system can only cache files it knows about. If - you are running Apache as a proxy server, the files you are caching are - not locally stored but remotely served. If you still want the unbeatable - speed of in-memory caching, Apache's own memory caching is needed.

-
MMapStatic Caching @@ -565,25 +540,6 @@ sys 0m0.000s to ensure that the files mapped are not so large as to cause the system to swap memory.

- -
- mod_mem_cache Caching - -

mod_mem_cache provides a HTTP-aware intelligent - in-memory cache. It also uses heap memory directly, which means that - even if MMap is not supported on your system, - mod_mem_cache may still be able to perform caching.

- -

Caching of this type is enabled via;

- -
-# Enable memory caching
-CacheEnable mem /
-
-# Limit the size of the cache to 1 Megabyte
-MCacheSize 1024
-
-
@@ -600,9 +556,8 @@ MCacheSize 1024

mod_disk_cache provides a disk-based caching mechanism - for mod_cache. As with mod_mem_cache - this cache is intelligent and content will be served from the cache only - as long as it is considered valid.

+ for mod_cache. This cache is intelligent and content will + be served from the cache only as long as it is considered valid.

Typically the module will be configured as so;

diff --git a/docs/manual/mod/mod_cache.xml b/docs/manual/mod/mod_cache.xml index 56981bbaca3..2a31747e564 100644 --- a/docs/manual/mod/mod_cache.xml +++ b/docs/manual/mod/mod_cache.xml @@ -41,20 +41,11 @@ href="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616 compliant HTTP content cache that can be used to cache either local or proxied content. mod_cache requires the services of one or more storage - management modules. Two storage management modules are included in + management modules. One storage management module is included in the base Apache distribution:

mod_disk_cache
implements a disk based storage manager.
- -
mod_mem_cache
-
implements a memory based storage manager. - mod_mem_cache can be configured to operate in two - modes: caching open file descriptors or caching objects in heap storage. - mod_mem_cache can be used to cache locally generated content - or to cache backend server content for mod_proxy when - configured using ProxyPass - (aka reverse proxy)

Content is stored in and retrieved from the cache using URI based keys. Content with @@ -68,7 +59,6 @@ mod_disk_cache - mod_mem_cache CacheRoot @@ -76,12 +66,6 @@ CacheDirLength CacheMinFileSize CacheMaxFileSize - MCacheSize - MCacheMaxObjectCount - MCacheMinObjectSize - MCacheMaxObjectSize - MCacheRemovalAlgorithm - MCacheMaxStreamingBuffer

@@ -95,9 +79,7 @@
<IfModule mod_cache.c>
- #LoadModule disk_cache_module modules/mod_disk_cache.so
- # If you want to use mod_disk_cache instead of mod_mem_cache,
- # uncomment the line above and comment out the LoadModule line below.
+ LoadModule disk_cache_module modules/mod_disk_cache.so
<IfModule mod_disk_cache.c>
CacheRoot c:/cacheroot
@@ -107,17 +89,6 @@
</IfModule>

- LoadModule mem_cache_module modules/mod_mem_cache.so
- <IfModule mod_mem_cache.c>
- - CacheEnable mem /
- MCacheSize 4096
- MCacheMaxObjectCount 100
- MCacheMinObjectSize 1
- MCacheMaxObjectSize 2048
-
- </IfModule>
-
# When acting as a proxy, don't cache the list of security updates
CacheDisable http://security.update.server/update-list/
@@ -137,15 +108,10 @@ manager

The CacheEnable directive instructs mod_cache to cache urls at or below url-string. The cache storage manager is specified with the - cache_type argument. cache_type mem - instructs mod_cache to use the memory based storage - manager implemented by mod_mem_cache. + cache_type argument. cache_type disk instructs mod_cache to use the disk based storage manager - implemented by mod_disk_cache. - cache_type fd instructs - mod_cache to use the file descriptor cache implemented - by mod_mem_cache.

+ implemented by mod_disk_cache.

In the event that the URL space overlaps between different CacheEnable directives (as in the example below), each possible storage manager will be run until the first one that @@ -153,12 +119,6 @@ manager run is determined by the order of the CacheEnable directives in the configuration file.

- - CacheEnable mem /manual
- CacheEnable fd /images
- CacheEnable disk /
-
-

When acting as a forward proxy server, url-string can also be used to specify remote sites and proxy protocols which caching should be enabled for.

diff --git a/docs/manual/mod/mod_mem_cache.html b/docs/manual/mod/mod_mem_cache.html deleted file mode 100644 index 987152e84a7..00000000000 --- a/docs/manual/mod/mod_mem_cache.html +++ /dev/null @@ -1,13 +0,0 @@ -# GENERATED FROM XML -- DO NOT EDIT - -URI: mod_mem_cache.html.en -Content-Language: en -Content-type: text/html; charset=ISO-8859-1 - -URI: mod_mem_cache.html.ja.utf8 -Content-Language: ja -Content-type: text/html; charset=UTF-8 - -URI: mod_mem_cache.html.ko.euc-kr -Content-Language: ko -Content-type: text/html; charset=EUC-KR diff --git a/docs/manual/mod/mod_mem_cache.html.en b/docs/manual/mod/mod_mem_cache.html.en deleted file mode 100644 index d3ee104787f..00000000000 --- a/docs/manual/mod/mod_mem_cache.html.en +++ /dev/null @@ -1,240 +0,0 @@ - - - -mod_mem_cache - Apache HTTP Server - - - - - - -
<-
- -
-

Apache Module mod_mem_cache

-
-

Available Languages:  en  | - ja  | - ko 

-
- - - -
Description:Content cache keyed to URIs
Status:Extension
Module Identifier:mem_cache_module
Source File:mod_mem_cache.c
-

Summary

- -

This module requires the service of mod_cache. It acts as a support module for mod_cache and provides a memory based storage manager. - mod_mem_cache can be configured to operate in two - modes: caching open file descriptors or caching objects in heap storage. - mod_mem_cache is most useful when used to cache locally - generated content or to cache backend server content for mod_proxy configured for ProxyPass (aka reverse proxy).

- -

Content is stored in and retrieved from the cache using URI based - keys. Content with access protection is not cached.

- -

Note

In most cases mod_disk_cache - should be the preferred choice. This is explained further in the Caching Guide. In particular, - this module's cache is per-process.
-
- - -
top
-

MCacheMaxObjectCount Directive

- - - - - - - -
Description:The maximum number of objects allowed to be placed in the -cache
Syntax:MCacheMaxObjectCount value
Default:MCacheMaxObjectCount 1009
Context:server config
Status:Extension
Module:mod_mem_cache
-

The MCacheMaxObjectCount directive sets the - maximum number of objects to be cached. The value is used to create the - open hash table. If a new object needs to be inserted in the cache and - the maximum number of objects has been reached, an object will be - removed to allow the new object to be cached. The object to be removed - is selected using the algorithm specified by MCacheRemovalAlgorithm.

- -

Example

- MCacheMaxObjectCount 13001 -

- -
-
top
-

MCacheMaxObjectSize Directive

- - - - - - - -
Description:The maximum size (in bytes) of a document allowed in the -cache
Syntax:MCacheMaxObjectSize bytes
Default:MCacheMaxObjectSize 10000
Context:server config
Status:Extension
Module:mod_mem_cache
-

The MCacheMaxObjectSize directive sets the - maximum allowable size, in bytes, of a document for it to be considered - cacheable.

- -

Example

- MCacheMaxObjectSize 6400000 -

- -

Note

-

The value of MCacheMaxObjectSize must be - greater than the value specified by the MCacheMinObjectSize directive.

-
- -
-
top
-

MCacheMaxStreamingBuffer Directive

- - - - - - - -
Description:Maximum amount of a streamed response to buffer in memory -before declaring the response uncacheable
Syntax:MCacheMaxStreamingBuffer size_in_bytes
Default:MCacheMaxStreamingBuffer the smaller of 100000 or MCacheMaxObjectSize
Context:server config
Status:Extension
Module:mod_mem_cache
-

The MCacheMaxStreamingBuffer directive - specifies the maximum number of bytes of a streamed response to - buffer before deciding that the response is too big to cache. - A streamed response is one in which the entire content is not - immediately available and in which the Content-Length - may not be known. Sources of streaming responses include proxied - responses and the output of CGI scripts. By default, a streamed - response will not be cached unless it has a - Content-Length header. The reason for this is to - avoid using a large amount of memory to buffer a partial response - that might end up being too large to fit in the cache. - The MCacheMaxStreamingBuffer directive allows - buffering of streamed responses that don't contain a - Content-Length up to the specified maximum amount of - space. If the maximum buffer space is reached, the buffered - content is discarded and the attempt to cache is abandoned.

- -

Note:

-

Using a nonzero value for MCacheMaxStreamingBuffer - will not delay the transmission of the response to the client. - As soon as mod_mem_cache copies a block of streamed - content into a buffer, it sends the block on to the next output - filter for delivery to the client.

-
- -

- # Enable caching of streamed responses up to 64KB:
- MCacheMaxStreamingBuffer 65536 -

- -
-
top
-

MCacheMinObjectSize Directive

- - - - - - - -
Description:The minimum size (in bytes) of a document to be allowed in the -cache
Syntax:MCacheMinObjectSize bytes
Default:MCacheMinObjectSize 1
Context:server config
Status:Extension
Module:mod_mem_cache
-

The MCacheMinObjectSize directive sets the - minimum size in bytes of a document for it to be considered - cacheable.

- -

Example

- MCacheMinObjectSize 10000 -

- -
-
top
-

MCacheRemovalAlgorithm Directive

- - - - - - - -
Description:The algorithm used to select documents for removal from the -cache
Syntax:MCacheRemovalAlgorithm LRU|GDSF
Default:MCacheRemovalAlgorithm GDSF
Context:server config
Status:Extension
Module:mod_mem_cache
-

The MCacheRemovalAlgorithm directive specifies - the algorithm used to select documents for removal from the cache. - Two choices are available:

- -
-
LRU (Least Recently Used)
-
LRU removes the documents that have not been accessed - for the longest time.
- -
GDSF (GreadyDual-Size)
-
GDSF assigns a priority to cached documents based - on the cost of a cache miss and the size of the document. Documents - with the lowest priority are removed first.
-
- -

Example

- MCacheRemovalAlgorithm GDSF
- MCacheRemovalAlgorithm LRU -

- -
-
top
-

MCacheSize Directive

- - - - - - - -
Description:The maximum amount of memory used by the cache in -KBytes
Syntax:MCacheSize KBytes
Default:MCacheSize 100
Context:server config
Status:Extension
Module:mod_mem_cache
-

The MCacheSize directive sets the maximum - amount of memory to be used by the cache, in KBytes (1024-byte units). - If a new object needs to be inserted in the cache and the size of the - object is greater than the remaining memory, objects will be removed - until the new object can be cached. The object to be removed is - selected using the algorithm specified by MCacheRemovalAlgorithm.

- -

Example

- MCacheSize 700000 -

- -

Note

-

The MCacheSize value must be greater than - the value specified by the MCacheMaxObjectSize directive.

-
- -
-
-
-

Available Languages:  en  | - ja  | - ko 

-
- \ No newline at end of file diff --git a/docs/manual/mod/mod_mem_cache.html.ja.utf8 b/docs/manual/mod/mod_mem_cache.html.ja.utf8 deleted file mode 100644 index 4aa09f23e57..00000000000 --- a/docs/manual/mod/mod_mem_cache.html.ja.utf8 +++ /dev/null @@ -1,239 +0,0 @@ - - - -mod_mem_cache - Apache HTTP サーバ - - - - - - -
<-
- -
-

Apache モジュール mod_mem_cache

-
-

言語:  en  | - ja  | - ko 

-
- - - -
説明:URI をキーにしたコンテンツのキャッシュ
ステータス:Extension
モジュール識別子:mem_cache_module
ソースファイル:mod_mem_cache.c
-

概要

- -

このモジュールは mod_cache を必要とします。 - これは mod_cache のサポートモジュールとして - 動作し、メモリを使用したストレージ管理機構を提供します。 - mod_mem_cache は二つのモードのどちらかで動作するように - 設定できます: ファイル記述子のキャッシュかヒープ中のオブジェクトの - キャッシュです。ローカルで生成されたコンテンツに対してキャッシュするときや、 - mod_proxy を使って ProxyPass (つまりリバースプロキシ向け) に設定したときのバックエンドサーバのコンテンツに対して - キャッシュをするときに、たいへん効果的です。

- -

コンテンツのキャッシュへの保存と取得は URI に基づいたキーが使われます。 - アクセス保護のかけられているコンテンツはキャッシュされません。

- -

注

ほとんどの場合、mod_disk_cache - のほうが好ましいでしょう。この件に関する詳細な説明は Caching Guide にあります。特に重要なポイントは、 - このモジュールのキャッシュは子プロセスごとであることです。
-
- - -
top
-

MCacheMaxObjectCount ディレクティブ

- - - - - - - -
説明:キャッシュに保管されるオブジェクトの最大数
構文:MCacheMaxObjectCount value
デフォルト:MCacheMaxObjectCount 1009
コンテキスト:サーバ設定ファイル
ステータス:Extension
モジュール:mod_mem_cache
-

MCacheMaxObjectCount ディレクティブは - キャッシュされるオブジェクトの最大数を指定します。 - この値はハッシュテーブルを作成するときに使われます。 - 新しいオブジェクトを挿入するときに、オブジェクトの最大数に - 達してしまっているとき、新しいオブジェクトをキャッシュできるように、 - オブジェクトを一つ消去します。オブジェクトは - MCacheRemovalAlgorithm - で指定されたアルゴリズムに従って削除されます。

- -

例

- MCacheMaxObjectCount 13001 -

- -
-
top
-

MCacheMaxObjectSize ディレクティブ

- - - - - - - -
説明:キャッシュに保管できるドキュメントの最大サイズ (バイト)
構文:MCacheMaxObjectSize bytes
デフォルト:MCacheMaxObjectSize 10000
コンテキスト:サーバ設定ファイル
ステータス:Extension
モジュール:mod_mem_cache
-

MCacheMaxObjectSize はドキュメントを - キャッシュするかどうかを判定する、最大のサイズをバイト数で設定します。

- -

例

- MCacheMaxObjectSize 6400000 -

- -

注

-

MCacheMaxObjectSize の値は MCacheMinObjectSize - で指定した値よりも大きくなければなりません。

-
- -
-
top
-

MCacheMaxStreamingBuffer ディレクティブ

- - - - - - - -
説明:ストリームされている応答をキャッシュ不能と決定するまでに -メモリにバッファする最大量
構文:MCacheMaxStreamingBuffer size_in_bytes
デフォルト:MCacheMaxStreamingBuffer of 100000 か MCacheMaxObjectSize の少い方
コンテキスト:サーバ設定ファイル
ステータス:Extension
モジュール:mod_mem_cache
-

MCacheMaxStreamingBuffer ディレクティブは、 - サイズが大きすぎてキャッシュできないと判断するまでの、 - ストリーム応答のバッファのための最大バイト数を指定します。 - ストリーム応答とは、コンテンツの全体がすぐには得られず、 - Content-Length がわからない応答を指します。 - ストリーム応答を行なうようなものにはプロキシされた応答や、 - CGI スクリプトの出力などがあります。デフォルトではストリームの応答は - Content-Length がない限りキャッシュされません。 - このような動作になっている理由は、結局キャッシュに収まりきらないと - 判断することになってしまうような、サイズの大きな応答のバッファリングに、 - 大量のメモリが消費されるのを避けるためです。 - MCacheMaxStreamingBuffer ディレクティブを使うと、 - Content-Length を含まない応答に対して指定された最大量まで - バッファするようにできます。バッファを使い切ると、バッファ中の - コンテンツは捨てられ、キャッシュ動作を中止します。

- -

注:

-

MCacheMaxStreamingBuffer に非零の値を - 使っても、クライアントへの応答の転送に特に遅延は発生しません。 - mod_mem_cache はストリームコンテンツの断片を - バッファにコピーした後、即座に、その部分をクライアントへの配送の - 次段の出力フィルタに送ります。

-
- -

- # Enable caching of streamed responses up to 64KB:
- MCacheMaxStreamingBuffer 65536 -

- -
-
top
-

MCacheMinObjectSize ディレクティブ

- - - - - - - -
説明:キャッシュに保管されるドキュメントの最小サイズ (バイト)
構文:MCacheMinObjectSize bytes
デフォルト:MCacheMinObjectSize 1
コンテキスト:サーバ設定ファイル
ステータス:Extension
モジュール:mod_mem_cache
-

MCacheMinObjectSize ディレクティブは、ドキュメントを - キャッシュするかどうかを判定する、最小のサイズをバイト数で設定します。

- -

例

- MCacheMinObjectSize 10000 -

- -
-
top
-

MCacheRemovalAlgorithm ディレクティブ

- - - - - - - -
説明:キャッシュから削除するドキュメントを選ぶためのアルゴリズム
構文:MCacheRemovalAlgorithm LRU|GDSF
デフォルト:MCacheRemovalAlgorithm GDSF
コンテキスト:サーバ設定ファイル
ステータス:Extension
モジュール:mod_mem_cache
-

MCacheRemovalAlgorithm ディレクティブは、 - キャッシュから削除するドキュメントを選択するためのアルゴリズムを - 指定します。選択肢は二つあります:

- -
-
LRU (Least Recently Used)
-
LRU 一番長くアクセスされていないドキュメントを削除します。 -
- -
GDSF (GreadyDual-Size)
-
GDSF はキャッシュミスのコストとドキュメントのサイズをもとに、 - ドキュメントのキャッシュに対して優先度をつけます。 - 優先度の一番低いドキュメントが最初に削除されます。
-
- -

例

- MCacheRemovalAlgorithm GDSF
- MCacheRemovalAlgorithm LRU -

- -
-
top
-

MCacheSize ディレクティブ

- - - - - - - -
説明:キャッシュに使われるメモリの最大量をバイト単位で指定
構文:MCacheSize KBytes
デフォルト:MCacheSize 100
コンテキスト:サーバ設定ファイル
ステータス:Extension
モジュール:mod_mem_cache
-

MCacheSize ディレクティブはキャッシュに - 使われるメモリの大きさをキロバイト (1024 バイト単位) で設定します。 - 新しいオブジェクトをキャッシュに挿入することになり、オブジェクトの - サイズが残りのメモリより大きい場合は、その新しいオブジェクトの挿入が - 可能になるまで、古いオブジェクトが削除されていきます。 - オブジェクトは MCacheRemovalAlgorithm - で指定したアルゴリズムに従って削除されます。

- -

例

- MCacheSize 700000 -

- -

注

-

MCacheSize の値は MCacheMaxObjectSize ディレクティブで指定した値より - 大きくなければなりません。

-
- -
-
-
-

言語:  en  | - ja  | - ko 

-
- \ No newline at end of file diff --git a/docs/manual/mod/mod_mem_cache.html.ko.euc-kr b/docs/manual/mod/mod_mem_cache.html.ko.euc-kr deleted file mode 100644 index 72a9ce3e5fd..00000000000 --- a/docs/manual/mod/mod_mem_cache.html.ko.euc-kr +++ /dev/null @@ -1,237 +0,0 @@ - - - -mod_mem_cache - Apache HTTP Server - - - - - - -
<-
- -
-

¾ÆÆÄÄ¡ ¸ðµâ mod_mem_cache

-
-

°¡´ÉÇÑ ¾ð¾î:  en  | - ja  | - ko 

-
-
ÀÌ ¹®¼­´Â ÃÖ½ÅÆÇ ¹ø¿ªÀÌ ¾Æ´Õ´Ï´Ù. - ÃÖ±Ù¿¡ º¯°æµÈ ³»¿ëÀº ¿µ¾î ¹®¼­¸¦ Âü°íÇϼ¼¿ä.
- - - -
¼³¸í: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½¬¿¡ ÀúÀåÇÏÁö ¾Ê´Â´Ù.

-
- - -
top
-

MCacheMaxObjectCount Áö½Ã¾î

- - - - - - - -
¼³¸í:ij½¬¿¡ ÀúÀåÇÒ ¼ö ÀÖ´Â ÃÖ´ë °´Ã¼°³¼ö
¹®¹ý:MCacheMaxObjectCount value
±âº»°ª:MCacheMaxObjectCount 1009
»ç¿ëÀå¼Ò:ÁÖ¼­¹ö¼³Á¤
»óÅÂ:Experimental
¸ðµâ:mod_mem_cache
-

MCacheMaxObjectCount Áö½Ã¾î´Â - ij½¬ÇÒ ¼ö ÀÖ´Â ÃÖ´ë °´Ã¼°³¼ö¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ °ªÀº ÇØ½¬Å×À̺íÀ» - ¸¸µé¶§ »ç¿ëÇÑ´Ù. »õ·Î¿î °´Ã¼¸¦ ij½¬¿¡ Ãß°¡ÇØ¾ß Çϴµ¥ ÃÖ´ë - °´Ã¼°³¼ö¿¡ µµ´ÞÇÏ¿´´Ù¸é, »õ·Î¿î °´Ã¼¸¦ ij½¬ÇÒ ¼ö ÀÖµµ·Ï - ´Ù¸¥ °´Ã¼¸¦ Á¦°ÅÇÑ´Ù. MCacheRemovalAlgorithmÀ¸·Î - ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© Á¦°ÅÇÒ °´Ã¼¸¦ ¼±ÅÃÇÑ´Ù.

- -

¿¹Á¦

- MCacheMaxObjectCount 13001 -

- -
-
top
-

MCacheMaxObjectSize Áö½Ã¾î

- - - - - - - -
¼³¸í:ij½¬¿¡ ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ´ë Å©±â (¹ÙÀÌÆ® ´ÜÀ§)
¹®¹ý:MCacheMaxObjectSize bytes
±âº»°ª:MCacheMaxObjectSize 10000
»ç¿ëÀå¼Ò:ÁÖ¼­¹ö¼³Á¤
»óÅÂ:Experimental
¸ðµâ:mod_mem_cache
-

MCacheMaxObjectSize Áö½Ã¾î´Â ij½¬¿¡ - ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ´ë Å©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.

- -

¿¹Á¦

- MCacheMaxObjectSize 6400000 -

- -

Note

-

MCacheMaxObjectSize °ªÀº MCacheMinObjectSize - Áö½Ã¾î·Î ÁöÁ¤ÇÑ °ªº¸´Ù Ä¿¾ß ÇÑ´Ù.

-
- -
-
top
-

MCacheMaxStreamingBuffer Áö½Ã¾î

- - - - - - - -
¼³¸í:ÀÀ´äÀ» 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 -

- -
-
top
-

MCacheMinObjectSize Áö½Ã¾î

- - - - - - - -
¼³¸í:ij½¬¿¡ ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ¼Ò Å©±â (¹ÙÀÌÆ® ´ÜÀ§)
¹®¹ý:MCacheMinObjectSize bytes
±âº»°ª:MCacheMinObjectSize 0
»ç¿ëÀå¼Ò:ÁÖ¼­¹ö¼³Á¤
»óÅÂ:Experimental
¸ðµâ:mod_mem_cache
-

MCacheMinObjectSize Áö½Ã¾î´Â ij½¬¿¡ - ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ¼Ò Å©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.

- -

¿¹Á¦

- MCacheMinObjectSize 10000 -

- -
-
top
-

MCacheRemovalAlgorithm Áö½Ã¾î

- - - - - - - -
¼³¸í: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 -

- -
-
top
-

MCacheSize Áö½Ã¾î

- - - - - - - -
¼³¸í:ij½¬¿¡ »ç¿ëÇÒ ÃÖ´ë ¸Þ¸ð¸®·® (KByte ´ÜÀ§)
¹®¹ý:MCacheSize KBytes
±âº»°ª:MCacheSize 100
»ç¿ëÀå¼Ò:ÁÖ¼­¹ö¼³Á¤
»óÅÂ:Experimental
¸ðµâ:mod_mem_cache
-

MCacheSize Áö½Ã¾î´Â ij½¬¿¡ »ç¿ëÇÒ - ÃÖ´ë ¸Þ¸ð¸®·®À» KByte ´ÜÀ§·Î (1024 ¹ÙÀÌÆ® ´ÜÀ§) ¼³Á¤ÇÑ´Ù. - »õ·Î¿î °´Ã¼À» ij½¬¿¡ Ãß°¡ÇØ¾ß Çϴµ¥ °´Ã¼ÀÇ Å©±â°¡ ³²Àº - ¸Þ¸ð¸®º¸´Ù Å©´Ù¸é »õ·Î¿î °´Ã¼À» ij½¬ÇÒ ¼ö ÀÖÀ»¶§±îÁö ´Ù¸¥ - °´Ã¼¸¦ Á¦°ÅÇÑ´Ù. MCacheRemovalAlgorithmÀ¸·Î - ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© Á¦°ÅÇÒ °´Ã¼¸¦ ¼±ÅÃÇÑ´Ù.

- -

¿¹Á¦

- MCacheSize 700000 -

- -

ÁÖÀÇ

-

MCacheSize °ªÀº MCacheMaxObjectSize - Áö½Ã¾î·Î ÁöÁ¤ÇÑ °ªº¸´Ù Ä¿¾ß ÇÑ´Ù.

-
- -
-
-
-

°¡´ÉÇÑ ¾ð¾î:  en  | - ja  | - ko 

-
- \ No newline at end of file diff --git a/docs/manual/mod/mod_mem_cache.xml b/docs/manual/mod/mod_mem_cache.xml deleted file mode 100644 index 2016c54da2a..00000000000 --- a/docs/manual/mod/mod_mem_cache.xml +++ /dev/null @@ -1,222 +0,0 @@ - - - - - - - - - -mod_mem_cache -Content cache keyed to URIs -Extension -mod_mem_cache.c -mem_cache_module - - -

This module requires the service of mod_cache. It acts as a support module for mod_cache and provides a memory based storage manager. - mod_mem_cache can be configured to operate in two - modes: caching open file descriptors or caching objects in heap storage. - mod_mem_cache is most useful when used to cache locally - generated content or to cache backend server content for mod_proxy configured for ProxyPass (aka reverse proxy).

- -

Content is stored in and retrieved from the cache using URI based - keys. Content with access protection is not cached.

- - NoteIn most cases mod_disk_cache - should be the preferred choice. This is explained further in the Caching Guide. In particular, - this module's cache is per-process. -
-mod_cache -mod_disk_cache - - -MCacheSize -The maximum amount of memory used by the cache in -KBytes -MCacheSize KBytes -MCacheSize 100 -server config - - -

The MCacheSize directive sets the maximum - amount of memory to be used by the cache, in KBytes (1024-byte units). - If a new object needs to be inserted in the cache and the size of the - object is greater than the remaining memory, objects will be removed - until the new object can be cached. The object to be removed is - selected using the algorithm specified by MCacheRemovalAlgorithm.

- - Example - MCacheSize 700000 - - - Note -

The MCacheSize value must be greater than - the value specified by the MCacheMaxObjectSize directive.

-
-
-
- - -MCacheMaxObjectCount -The maximum number of objects allowed to be placed in the -cache -MCacheMaxObjectCount value -MCacheMaxObjectCount 1009 -server config - - -

The MCacheMaxObjectCount directive sets the - maximum number of objects to be cached. The value is used to create the - open hash table. If a new object needs to be inserted in the cache and - the maximum number of objects has been reached, an object will be - removed to allow the new object to be cached. The object to be removed - is selected using the algorithm specified by MCacheRemovalAlgorithm.

- - Example - MCacheMaxObjectCount 13001 - -
-
- - -MCacheMinObjectSize -The minimum size (in bytes) of a document to be allowed in the -cache -MCacheMinObjectSize bytes -MCacheMinObjectSize 1 -server config - - -

The MCacheMinObjectSize directive sets the - minimum size in bytes of a document for it to be considered - cacheable.

- - Example - MCacheMinObjectSize 10000 - -
-
- - -MCacheMaxObjectSize -The maximum size (in bytes) of a document allowed in the -cache -MCacheMaxObjectSize bytes -MCacheMaxObjectSize 10000 -server config - - -

The MCacheMaxObjectSize directive sets the - maximum allowable size, in bytes, of a document for it to be considered - cacheable.

- - Example - MCacheMaxObjectSize 6400000 - - - Note -

The value of MCacheMaxObjectSize must be - greater than the value specified by the MCacheMinObjectSize directive.

-
-
-
- - -MCacheRemovalAlgorithm -The algorithm used to select documents for removal from the -cache -MCacheRemovalAlgorithm LRU|GDSF -MCacheRemovalAlgorithm GDSF -server config - - -

The MCacheRemovalAlgorithm directive specifies - the algorithm used to select documents for removal from the cache. - Two choices are available:

- -
-
LRU (Least Recently Used)
-
LRU removes the documents that have not been accessed - for the longest time.
- -
GDSF (GreadyDual-Size)
-
GDSF assigns a priority to cached documents based - on the cost of a cache miss and the size of the document. Documents - with the lowest priority are removed first.
-
- - Example - MCacheRemovalAlgorithm GDSF
- MCacheRemovalAlgorithm LRU -
-
-
- - -MCacheMaxStreamingBuffer -Maximum amount of a streamed response to buffer in memory -before declaring the response uncacheable -MCacheMaxStreamingBuffer size_in_bytes -MCacheMaxStreamingBuffer the smaller of 100000 or MCacheMaxObjectSize -server config - - - -

The MCacheMaxStreamingBuffer directive - specifies the maximum number of bytes of a streamed response to - buffer before deciding that the response is too big to cache. - A streamed response is one in which the entire content is not - immediately available and in which the Content-Length - may not be known. Sources of streaming responses include proxied - responses and the output of CGI scripts. By default, a streamed - response will not be cached unless it has a - Content-Length header. The reason for this is to - avoid using a large amount of memory to buffer a partial response - that might end up being too large to fit in the cache. - The MCacheMaxStreamingBuffer directive allows - buffering of streamed responses that don't contain a - Content-Length up to the specified maximum amount of - space. If the maximum buffer space is reached, the buffered - content is discarded and the attempt to cache is abandoned.

- - Note: -

Using a nonzero value for MCacheMaxStreamingBuffer - will not delay the transmission of the response to the client. - As soon as mod_mem_cache copies a block of streamed - content into a buffer, it sends the block on to the next output - filter for delivery to the client.

-
- - - # Enable caching of streamed responses up to 64KB:
- MCacheMaxStreamingBuffer 65536 -
-
-
- -
diff --git a/docs/manual/mod/mod_mem_cache.xml.ja b/docs/manual/mod/mod_mem_cache.xml.ja deleted file mode 100644 index cbccd68bdfe..00000000000 --- a/docs/manual/mod/mod_mem_cache.xml.ja +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - - - - -mod_mem_cache -URI をキーにしたコンテンツのキャッシュ -Extension -mod_mem_cache.c -mem_cache_module - - -

このモジュールは mod_cache を必要とします。 - これは mod_cache のサポートモジュールとして - 動作し、メモリを使用したストレージ管理機構を提供します。 - mod_mem_cache は二つのモードのどちらかで動作するように - 設定できます: ファイル記述子のキャッシュかヒープ中のオブジェクトの - キャッシュです。ローカルで生成されたコンテンツに対してキャッシュするときや、 - mod_proxy を使って ProxyPass (つまりリバースプロキシ向け) に設定したときのバックエンドサーバのコンテンツに対して - キャッシュをするときに、たいへん効果的です。

- -

コンテンツのキャッシュへの保存と取得は URI に基づいたキーが使われます。 - アクセス保護のかけられているコンテンツはキャッシュされません。

- - 注ほとんどの場合、mod_disk_cache - のほうが好ましいでしょう。この件に関する詳細な説明は Caching Guide にあります。特に重要なポイントは、 - このモジュールのキャッシュは子プロセスごとであることです。 -
-mod_cache -mod_disk_cache - - -MCacheSize -キャッシュに使われるメモリの最大量をバイト単位で指定 -MCacheSize KBytes -MCacheSize 100 -server config - - -

MCacheSize ディレクティブはキャッシュに - 使われるメモリの大きさをキロバイト (1024 バイト単位) で設定します。 - 新しいオブジェクトをキャッシュに挿入することになり、オブジェクトの - サイズが残りのメモリより大きい場合は、その新しいオブジェクトの挿入が - 可能になるまで、古いオブジェクトが削除されていきます。 - オブジェクトは MCacheRemovalAlgorithm - で指定したアルゴリズムに従って削除されます。

- - 例 - MCacheSize 700000 - - - 注 -

MCacheSize の値は MCacheMaxObjectSize ディレクティブで指定した値より - 大きくなければなりません。

-
-
-
- - -MCacheMaxObjectCount -キャッシュに保管されるオブジェクトの最大数 -MCacheMaxObjectCount value -MCacheMaxObjectCount 1009 -server config - - -

MCacheMaxObjectCount ディレクティブは - キャッシュされるオブジェクトの最大数を指定します。 - この値はハッシュテーブルを作成するときに使われます。 - 新しいオブジェクトを挿入するときに、オブジェクトの最大数に - 達してしまっているとき、新しいオブジェクトをキャッシュできるように、 - オブジェクトを一つ消去します。オブジェクトは - MCacheRemovalAlgorithm - で指定されたアルゴリズムに従って削除されます。

- - 例 - MCacheMaxObjectCount 13001 - -
-
- - -MCacheMinObjectSize -キャッシュに保管されるドキュメントの最小サイズ (バイト) -MCacheMinObjectSize bytes -MCacheMinObjectSize 1 -server config - - -

MCacheMinObjectSize ディレクティブは、ドキュメントを - キャッシュするかどうかを判定する、最小のサイズをバイト数で設定します。

- - 例 - MCacheMinObjectSize 10000 - -
-
- - -MCacheMaxObjectSize -キャッシュに保管できるドキュメントの最大サイズ (バイト) -MCacheMaxObjectSize bytes -MCacheMaxObjectSize 10000 -server config - - -

MCacheMaxObjectSize はドキュメントを - キャッシュするかどうかを判定する、最大のサイズをバイト数で設定します。

- - 例 - MCacheMaxObjectSize 6400000 - - - 注 -

MCacheMaxObjectSize の値は MCacheMinObjectSize - で指定した値よりも大きくなければなりません。

-
-
-
- - -MCacheRemovalAlgorithm -キャッシュから削除するドキュメントを選ぶためのアルゴリズム -MCacheRemovalAlgorithm LRU|GDSF -MCacheRemovalAlgorithm GDSF -server config - - -

MCacheRemovalAlgorithm ディレクティブは、 - キャッシュから削除するドキュメントを選択するためのアルゴリズムを - 指定します。選択肢は二つあります:

- -
-
LRU (Least Recently Used)
-
LRU 一番長くアクセスされていないドキュメントを削除します。 -
- -
GDSF (GreadyDual-Size)
-
GDSF はキャッシュミスのコストとドキュメントのサイズをもとに、 - ドキュメントのキャッシュに対して優先度をつけます。 - 優先度の一番低いドキュメントが最初に削除されます。
-
- - 例 - MCacheRemovalAlgorithm GDSF
- MCacheRemovalAlgorithm LRU -
-
-
- - -MCacheMaxStreamingBuffer -ストリームされている応答をキャッシュ不能と決定するまでに -メモリにバッファする最大量 -MCacheMaxStreamingBuffer size_in_bytes -MCacheMaxStreamingBuffer of 100000 か MCacheMaxObjectSize の少い方 -server config - - - -

MCacheMaxStreamingBuffer ディレクティブは、 - サイズが大きすぎてキャッシュできないと判断するまでの、 - ストリーム応答のバッファのための最大バイト数を指定します。 - ストリーム応答とは、コンテンツの全体がすぐには得られず、 - Content-Length がわからない応答を指します。 - ストリーム応答を行なうようなものにはプロキシされた応答や、 - CGI スクリプトの出力などがあります。デフォルトではストリームの応答は - Content-Length がない限りキャッシュされません。 - このような動作になっている理由は、結局キャッシュに収まりきらないと - 判断することになってしまうような、サイズの大きな応答のバッファリングに、 - 大量のメモリが消費されるのを避けるためです。 - MCacheMaxStreamingBuffer ディレクティブを使うと、 - Content-Length を含まない応答に対して指定された最大量まで - バッファするようにできます。バッファを使い切ると、バッファ中の - コンテンツは捨てられ、キャッシュ動作を中止します。

- - 注: -

MCacheMaxStreamingBuffer に非零の値を - 使っても、クライアントへの応答の転送に特に遅延は発生しません。 - mod_mem_cache はストリームコンテンツの断片を - バッファにコピーした後、即座に、その部分をクライアントへの配送の - 次段の出力フィルタに送ります。

-
- - - # Enable caching of streamed responses up to 64KB:
- MCacheMaxStreamingBuffer 65536 -
-
-
- -
diff --git a/docs/manual/mod/mod_mem_cache.xml.ko b/docs/manual/mod/mod_mem_cache.xml.ko deleted file mode 100644 index 59d8e9e9ccb..00000000000 --- a/docs/manual/mod/mod_mem_cache.xml.ko +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - - - - -mod_mem_cache -URI¸¦ Ű·Î »ç¿ëÇÏ¿© ³»¿ëÀ» ij½¬ÇÑ´Ù. -Experimental -mod_mem_cache.c -mem_cache_module - - - - ÀÌ ¸ðµâÀº ½ÇÇèÀûÀÎ »óÅÂÀÌ´Ù. ¹®¼­´Â ¾ÆÁ÷ ÀÛ¾÷ÁßÀÌ´Ù... - - -

ÀÌ ¸ðµâÀ» »ç¿ëÇÏ·Á¸é mod_cache°¡ - ÇÊ¿äÇÏ´Ù. ÀÌ ¸ðµâÀº mod_cache¸¦ - Áö¿øÇÏ¸ç ¸Þ¸ð¸®±â¹Ý ÀúÀå°ü¸®ÀÚ¸¦ Á¦°øÇÑ´Ù. - mod_mem_cache´Â ÆÄÀϱâ¼úÀÚ¸¦ ij½¬¿¡ ÀúÀåÇϰųª - °´Ã¼¸¦ Èü °ø°£¿¡ ij½¬ÇÏ´Â µÎ°¡Áö ¹æ½ÄÀ¸·Î µ¿ÀÛÇÑ´Ù. - mod_mem_cache´Â Á÷Á¢ ¼­¹ö°¡ »ý¼ºÇÑ ÆäÀÌÁö¸¦ - ij½¬Çϰųª ProxyPass·Î - ¼³Á¤ÇÑ (¿ªÇÁ·Ï½Ã(reverse proxy)) - mod_proxyÀÇ µÞ´Ü ¼­¹ö³»¿ëÀ» ij½¬ÇÒ¶§ ÁÖ·Î - »ç¿ëÇÑ´Ù.

- -

³»¿ëÀº URI¸¦ Ű·Î »ç¿ëÇÏ¿© ij½¬¿¡ ÀúÀåÇÏ°í °¡Á®¿Â´Ù. - Á¢±ÙÀ» Á¦¾îÇÏ´Â ³»¿ëÀº ij½¬¿¡ ÀúÀåÇÏÁö ¾Ê´Â´Ù.

-
-mod_cache -mod_disk_cache - - -MCacheSize -ij½¬¿¡ »ç¿ëÇÒ ÃÖ´ë ¸Þ¸ð¸®·® (KByte ´ÜÀ§) -MCacheSize KBytes -MCacheSize 100 -server config - - -

MCacheSize Áö½Ã¾î´Â ij½¬¿¡ »ç¿ëÇÒ - ÃÖ´ë ¸Þ¸ð¸®·®À» KByte ´ÜÀ§·Î (1024 ¹ÙÀÌÆ® ´ÜÀ§) ¼³Á¤ÇÑ´Ù. - »õ·Î¿î °´Ã¼À» ij½¬¿¡ Ãß°¡ÇØ¾ß Çϴµ¥ °´Ã¼ÀÇ Å©±â°¡ ³²Àº - ¸Þ¸ð¸®º¸´Ù Å©´Ù¸é »õ·Î¿î °´Ã¼À» ij½¬ÇÒ ¼ö ÀÖÀ»¶§±îÁö ´Ù¸¥ - °´Ã¼¸¦ Á¦°ÅÇÑ´Ù. MCacheRemovalAlgorithmÀ¸·Î - ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© Á¦°ÅÇÒ °´Ã¼¸¦ ¼±ÅÃÇÑ´Ù.

- - ¿¹Á¦ - MCacheSize 700000 - - - ÁÖÀÇ -

MCacheSize °ªÀº MCacheMaxObjectSize - Áö½Ã¾î·Î ÁöÁ¤ÇÑ °ªº¸´Ù Ä¿¾ß ÇÑ´Ù.

-
-
-
- - -MCacheMaxObjectCount -ij½¬¿¡ ÀúÀåÇÒ ¼ö ÀÖ´Â ÃÖ´ë °´Ã¼°³¼ö -MCacheMaxObjectCount value -MCacheMaxObjectCount 1009 -server config - - -

MCacheMaxObjectCount Áö½Ã¾î´Â - ij½¬ÇÒ ¼ö ÀÖ´Â ÃÖ´ë °´Ã¼°³¼ö¸¦ ¼³Á¤ÇÑ´Ù. ÀÌ °ªÀº ÇØ½¬Å×À̺íÀ» - ¸¸µé¶§ »ç¿ëÇÑ´Ù. »õ·Î¿î °´Ã¼¸¦ ij½¬¿¡ Ãß°¡ÇØ¾ß Çϴµ¥ ÃÖ´ë - °´Ã¼°³¼ö¿¡ µµ´ÞÇÏ¿´´Ù¸é, »õ·Î¿î °´Ã¼¸¦ ij½¬ÇÒ ¼ö ÀÖµµ·Ï - ´Ù¸¥ °´Ã¼¸¦ Á¦°ÅÇÑ´Ù. MCacheRemovalAlgorithmÀ¸·Î - ÁöÁ¤ÇÑ ¾Ë°í¸®ÁòÀ» »ç¿ëÇÏ¿© Á¦°ÅÇÒ °´Ã¼¸¦ ¼±ÅÃÇÑ´Ù.

- - ¿¹Á¦ - MCacheMaxObjectCount 13001 - -
-
- - -MCacheMinObjectSize -ij½¬¿¡ ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ¼Ò Å©±â (¹ÙÀÌÆ® ´ÜÀ§) -MCacheMinObjectSize bytes -MCacheMinObjectSize 0 -server config - - -

MCacheMinObjectSize Áö½Ã¾î´Â ij½¬¿¡ - ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ¼Ò Å©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.

- - ¿¹Á¦ - MCacheMinObjectSize 10000 - -
-
- - -MCacheMaxObjectSize -ij½¬¿¡ ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ´ë Å©±â (¹ÙÀÌÆ® ´ÜÀ§) -MCacheMaxObjectSize bytes -MCacheMaxObjectSize 10000 -server config - - -

MCacheMaxObjectSize Áö½Ã¾î´Â ij½¬¿¡ - ÀúÀåÇÒ ¹®¼­ÀÇ ÃÖ´ë Å©±â¸¦ ¹ÙÀÌÆ® ´ÜÀ§·Î ÁöÁ¤ÇÑ´Ù.

- - ¿¹Á¦ - MCacheMaxObjectSize 6400000 - - - Note -

MCacheMaxObjectSize °ªÀº MCacheMinObjectSize - Áö½Ã¾î·Î ÁöÁ¤ÇÑ °ªº¸´Ù Ä¿¾ß ÇÑ´Ù.

-
-
-
- - -MCacheRemovalAlgorithm -ij½¬¿¡¼­ Á¦°ÅÇÒ ¹®¼­¸¦ ã´Â ¾Ë°í¸®Áò -MCacheRemovalAlgorithm LRU|GDSF -MCacheRemovalAlgorithm GDSF -server config - - -

MCacheRemovalAlgorithm Áö½Ã¾î´Â - ij½¬¿¡¼­ Á¦°ÅÇÒ ¹®¼­¸¦ ã´Â ¾Ë°í¸®ÁòÀ» ÁöÁ¤ÇÑ´Ù.

- -
-
LRU (Least Recently Used)
-
LRU´Â °¡Àå ¿À·¡µ¿¾È Á¢±ÙÇÏÁö ¾ÊÀº ¹®¼­¸¦ - ¸ÕÀú Á¦°ÅÇÑ´Ù.
- -
GDSF (GreadyDual-Size)
-
GDSF´Â ij½¬ ½ÇÆÐ(cache miss) ºñ¿ë°ú ¹®¼­ÀÇ - Å©±â¸¦ °¡Áö°í ij½¬ÇÑ ¹®¼­¿¡ ¿ì¼±¼øÀ§¸¦ ºÎ¿©ÇÑ´Ù. °¡Àå - ¿ì¼±¼øÀ§°¡ ³·Àº ¹®¼­¸¦ ¸ÕÀú Á¦°ÅÇÑ´Ù.
-
- - ¿¹Á¦ - MCacheRemovalAlgorithm GDSF
- MCacheRemovalAlgorithm LRU -
-
-
- - -MCacheMaxStreamingBuffer -ÀÀ´äÀ» ij½¬¾ÈÇÑ´Ù°í °áÁ¤Çϱâ Àü±îÁö ¸Þ¸ð¸® ¹öÆÛ¿¡ -ÀúÀåÇÒ ½ºÆ®¸² ÀÀ´äÀÇ ÃÖ´ë Å©±â -MCacheMaxStreamingBuffer size_in_bytes -MCacheMaxStreamingBuffer 100000°ú MCacheMaxObjectSize -Áß¿¡ ÀÛÀº °ª -server config - - - -

MCacheMaxStreamingBuffer Áö½Ã¾î´Â - ÀÀ´äÀÌ ³Ê¹« Ä¿¼­ ij½¬ÇÒ ¼ö ¾øÀ»¶§±îÁö ¹öÆÛ¿¡ ÀúÀåÇÒ ½ºÆ®¸² - ÀÀ´äÀÇ ÃÖ´ë ¹ÙÀÌÆ®¼ö¸¦ ¼³Á¤ÇÑ´Ù. ½ºÆ®¸² ÀÀ´ä(streamed response)Àº - Àüü ³»¿ëÀ» Áï½Ã ¾Ë ¼ö ¾ø°í Content-Lengthµµ - ¸ð¸£´Â ÀÀ´äÀÌ´Ù. ÇÁ·Ï½ÃµÈ ÀÀ´äÀ̳ª CGI ½ºÅ©¸³Æ®ÀÇ Ãâ·ÂÀÌ - ½ºÆ®¸² ÀÀ´ä¿¡ ¼ÓÇÑ´Ù. ±âº»ÀûÀ¸·Î Content-Length - Çì´õ°¡ ¾ø´Ù¸é ½ºÆ®¸² ÀÀ´äÀ» ij½¬¿¡ ÀúÀåÇÏÁö ¾Ê´Â´Ù. - ÀÌÀ¯´Â ij½¬¿¡ ÀúÀåÇϱ⿡ ³Ê¹« Å« ÀÀ´äÀÇ ÀϺθ¦ ¹öÆÛ¿¡ - ÀúÀåÇϱâÀ§ÇØ ¸¹Àº ¸Þ¸ð¸®¸¦ ³¶ºñÇÏÁö ¾Ê±âÀ§Çؼ­ÀÌ´Ù. - MCacheMaxStreamingBuffer Áö½Ã¾î¸¦ - »ç¿ëÇϸé Content-Length°¡ ¾ø´Â ½ºÆ®¸² ÀÀ´äÀ» - ÁöÁ¤ÇÑ Å©±â±îÁö¸¸ ¹öÆÛ¿¡ ÀúÀåÇÑ´Ù. ÃÖ´ë Å©±â¸¦ ³Ñ¾î¼­¸é - ¹öÆÛ ³»¿ëÀ» ¹ö¸®°í ij½¬ÇÏÁö ¾Ê´Â´Ù.

- - ÁÖÀÇ: -

MCacheMaxStreamingBuffer¿¡ 0ÀÌ - ¾Æ´Ñ °ªÀ» ¼³Á¤ÇÏ¿©µµ Ŭ¶óÀÌ¾ðÆ®·Î ÀÀ´äÀ» ´Ê°Ô º¸³»Áö ¾Ê´Â´Ù. - mod_mem_cache´Â ½ºÆ®¸² ÀÀ´äÀÇ ÀϺθ¦ - ¹öÆÛ¿¡ º¹»çÇÏÀÚ¸¶ÀÚ Å¬¶óÀÌ¾ðÆ®·Î º¸³»±âÀ§ÇØ ´ÙÀ½ Ãâ·ÂÇÊÅÍ·Î - º¸³½´Ù.

-
- - - # ½ºÆ®¸² ÀÀ´äÀ» 64KB±îÁö ij½¬ÇÑ´Ù:
- MCacheMaxStreamingBuffer 65536 -
-
-
- -
diff --git a/docs/manual/mod/mod_mem_cache.xml.meta b/docs/manual/mod/mod_mem_cache.xml.meta deleted file mode 100644 index 943e861e5b2..00000000000 --- a/docs/manual/mod/mod_mem_cache.xml.meta +++ /dev/null @@ -1,14 +0,0 @@ - - - - - mod_mem_cache - /mod/ - .. - - - en - ja - ko - - diff --git a/docs/manual/new_features_2_2.xml b/docs/manual/new_features_2_2.xml index 74b7635c586..47091c16a14 100644 --- a/docs/manual/new_features_2_2.xml +++ b/docs/manual/new_features_2_2.xml @@ -46,7 +46,7 @@
Caching
mod_cache, mod_disk_cache, and - mod_mem_cache have undergone a lot of changes, and + mod_mem_cache(already removed from 2.3/2.4) have undergone a lot of changes, and are now considered production-quality. htcacheclean has been introduced to clean up mod_disk_cache setups.
diff --git a/docs/manual/programs/configure.xml b/docs/manual/programs/configure.xml index 9c91764853f..f63c9888e1d 100644 --- a/docs/manual/programs/configure.xml +++ b/docs/manual/programs/configure.xml @@ -424,8 +424,7 @@ mod_cache. This experimental module may be interesting for servers with high load or caching proxy servers. At least one storage management module (e.g. - mod_disk_cache or mod_mem_cache) - is also necessary. + mod_disk_cache) is also necessary.
--enable-cern-meta
Enable the CERN-type meta files support provided by @@ -494,10 +493,6 @@
Enable logging of input and output bytes including headers provided by mod_logio.
-
--enable-mem-cache
-
Enable memory caching provided by - mod_mem_cache.
-
--enable-mime-magic
Enable automatical determining of MIME @@ -702,7 +697,7 @@ ./configure \
--with-ldap \
- --enable-mods-shared="all ssl ldap cache proxy authn_alias mem_cache file_cache authnz_ldap charset_lite dav_lock disk_cache" + --enable-mods-shared="all ssl ldap cache proxy authn_alias file_cache authnz_ldap charset_lite dav_lock disk_cache"