# xsql_ha_set_quorum

> Change the HA quorum.

> ### For an overview see page HA Applications

> ### Prototype

>         void xsql_ha_set_quorum( quorum );

> ### Arguments

> `quorum`
> The number of active replicas that is acceptable (including 0)

> ### Description

> > This function is called by the master application or instance of xSQL to set the HA quorum at runtime. Note that a value of `quorum` greater than 0 is allowed only for synchronous replication mode.

> ### Example

>         XSQL>select xsql_ha_set_quorum(2);
>         #1
>         ------------------------------------------------------------------------------
>         null