無限快取特性取下:
- 低成本 - 利用閒置或空閒的伺服器記憶體, 組織成一大塊邏輯記憶體.
- 無限擴展性 - 無限快取可以無限擴充節點, 提高系統之高可用性.
- 極高的效能 - 透過記憶體的擴充, 可以提高 2~20 倍以上的效率.
- 動態管理節點 - 可以線上增加或刪除節點.
- BI及Reporting應用 - 提昇BI及Reporting的執行效率.
Infinite Cache源自memory cache的理念設計, 有鑒於memory cache的應用, EnterpriseDB 將其繁複運作的程序交由資料庫來控管, 而應用系統無需定義快取需求, 即能提昇查詢效率.
以下為Infinite Cache配置方式,
1. 初始化測試環境
1. 初始化測試環境
a. 建置測試資料庫
初始化測試資料,預估26GB資料庫.
edb=# create user bench password ‘bench’login;
edb=# create database benchmark owner bench;
b. edb=# create database benchmark owner bench;
# pgbench -i -U bench -s 1700 bench;
2. 測試未配置infinite cache的腳本
# pgbench -c 100 -t 10000 -S -n -U bench -d benchmark
測試結果為:3. 啟動 infinite cache 服務,並配置Memory 5GB
$ edb-icache -d -m 50000
4. Warmup data
$ edb_icache_warm -h localhost-p 5444 -U enterprisedb benchmark
5. 測試已配置infinite cache的腳本
# pgbench -c 100 -t 10000 -S -n -U bench -d benchmark
測試結果為:
6, 測試結果
Item
|
Result
|
EDB without Icache
|
86.319078
交易/每秒
|
EDB with Icache
|
2311.139846 交易/每秒
|



沒有留言:
張貼留言