# Point application to a dDatabase Cluster

**URL:** <https://forums.percona.com/t/point-application-to-a-ddatabase-cluster/13726>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [December 31, 2021, 12:27pm UTC](https://forums.percona.com/t/point-application-to-a-ddatabase-cluster/13726 "2021-12-31T12:27:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Karuna](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/alex_karuna/32/5469_2.png) [@Alex\_Karuna](https://forums.percona.com/u/Alex_Karuna)\
**Post date:** [December 31, 2021, 12:27pm UTC](https://forums.percona.com/t/point-application-to-a-ddatabase-cluster/13726/1 "2021-12-31T12:27:36Z")

</div>

Hello Team,

I’m new here.  
I have set up a 3-Node XtraDB cluster in AWS Ec2 using the documentation provided by Percona. Everything is working great. I need to point my application to a database. What is the easiest way to do it? I’m confused after looked at several solutions. can I use HAProxy ? or ProxySQL ?  
I need to distribute the request to all nodes depending on traffic. Also, can we monitor clusters in Mysql Workbench? or PMM is the only way to monitor cluster?  
What is the simplest way to achieve this, preferably one with a good step-by-step guide .

Thanks!

---

<div class="post-metadata">

**Author:** ![przemek](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/przemek/32/3_2.png) [@przemek](https://forums.percona.com/u/przemek)\
**Post date:** [January 3, 2022, 8:24am UTC](https://forums.percona.com/t/point-application-to-a-ddatabase-cluster/13726/2 "2022-01-03T08:24:54Z")

</div>

You can use both HAProxy and ProxySQL with Percona XtraDB Cluster. The latter is much more than a simple load balancer though, there are many features you can use here, including routing reads and writes transparently to separate backends, cache query results or even rewrite queries on the fly. You will find more details here:  
[https://www.percona.com/doc/percona-xtradb-cluster/LATEST/howtos/proxysql.html](https://www.percona.com/doc/percona-xtradb-cluster/LATEST/howtos/proxysql.html)

> **[Support for Percona XtraDB Cluster in ProxySQL (Part Two) - Percona Database...](https://www.percona.com/blog/2020/11/30/support-for-percona-xtradb-cluster-in-proxysql-part-two/)**
>
> Using the scheduler option and the external script to see how simple scenarios may fail or have problems when using Galera native support inside ProxySQL.

Mysql Workbench is not aware of this replication type, so you would be limited to monitoring only basic MySQL aspects. PMM has dedicated dashboards for PXC, check it out on our live demo:  
[https://pmmdemo.percona.com/graph/d/pxc-cluster-summary/pxc-galera-cluster-summary?orgId=1&var-cluster=pxc-80-cluster](https://pmmdemo.percona.com/graph/d/pxc-cluster-summary/pxc-galera-cluster-summary?orgId=1&var-cluster=pxc-80-cluster)
