Amazon RDS 推出了 Connection Pool 的產品,叫做 Amazon RDS Proxy:「Introducing Amazon RDS Proxy (Preview)」。
目前支援 MySQL (包括了傳統的與 Aurora 版本的):
Amazon RDS Proxy supports Amazon RDS for MySQL and Amazon Aurora with MySQL compatibility, with support for additional RDS database engines coming soon.
定價策略看起來是依照後端資料庫的 vCPU 計算:
Pricing is simple and predictable: you pay per vCPU of the database instance for which the proxy is enabled.
翻了一下價錢頁是 USD$0.015/vCPU (用 us-east-1
的資料),而如果是 t2
系列的機器,最低是以 2 vCPUs 計算,不是照使用比例算:
RDS Proxy pricing correlates to the number of vCPUs of the database instance for which it is enabled, with a minimum charge for 2 vCPUs.
這樣一個 vCPU 一個月大約要 USD$21.6,算起來頗貴的... 如果 SLA 允許的話,用基本的方式 failover 也許就 ok 了...
如果 SLA 真的要追求到這麼高的話,可以在這些區域測試:
Amazon RDS Proxy is available in preview for RDS MySQL and Aurora MySQL in US East (N. Virginia), US East (Ohio), US West (Oregon), EU West (Ireland), and Asia Pacific (Tokyo) regions. Support for RDS PostgreSQL and Aurora PostgreSQL is coming soon.