#author("2017-12-26T22:23:57+09:00","default:haikikyou","haikikyou")
#author("2017-12-26T22:25:25+09:00","default:haikikyou","haikikyou")
[[PostgreSQL/Pgpool-II]]

* コネクションプーリング [#ab912199]

- PostgreSQLバックエンドへのコネクション接続をキャッシュし再利用する。
- &code(connection_cache);をonで有効化する(デフォルトon)。

- ただし、以下はキャッシュ対象とならない。
-- template0、template1、postgres、regression
* プール構造 [#k389fe83]

- 各子プロセスが最大でmax_pool分のコネクションを保持する。
- max_poolの接続は、「データベース名:ユーザー名」のペアで1つとなる。

#ref(./connection-pool.png,100%)

* 参考リンク [#p1dc1373]

- [[コネクションプーリング>http://www.pgpool.net/docs/pgpool-II-3.7.0/doc/ja/html/runtime-config-connection-pooling.html]] - &size(11){&color(gray){http://www.pgpool.net/docs/pgpool-II-3.7.0/doc/ja/html};};
- [[protocol/pool_connection_pool.c>https://git.postgresql.org/gitweb/?p=pgpool2.git;a=blob;f=src/protocol/pool_connection_pool.c;h=320f76d17aba051cd025b9be8c777f096fecb86e;hb=eea86a381c51dc65e6979af32fa79a84aab26c87]] - &size(11){&color(gray){on https://git.postgresql.org/gitweb/?p=pgpool2.git};};
- [[include/pool.h>https://git.postgresql.org/gitweb/?p=pgpool2.git;a=blob;f=src/include/pool.h;h=48cd82909a1faa8952b9cf786a36478b888f2abb;hb=eea86a381c51dc65e6979af32fa79a84aab26c87]] - &size(11){&color(gray){on https://git.postgresql.org/gitweb/?p=pgpool2.git};};

トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
目次
ダブルクリックで閉じるTOP | 閉じる
GO TO TOP