Addition of server weighting to the read/write splitter

Tidy up the output of show server and show servers so that columsn align
This commit is contained in:
Mark Riddoch
2014-07-01 11:06:28 +01:00
parent c69df02e64
commit eaaac58b44
3 changed files with 145 additions and 63 deletions

View File

@ -175,9 +175,17 @@ typedef struct backend_st {
#if defined(SS_DEBUG)
skygw_chk_t be_chk_top;
#endif
SERVER* backend_server; /*< The server itself */
int backend_conn_count; /*< Number of connections to the server */
bool be_valid; /*< valid when belongs to the router's configuration */
SERVER* backend_server; /*< The server itself */
int backend_conn_count; /*< Number of connections to
* the server
*/
bool be_valid; /*< Valid when belongs to the
* router's configuration
*/
int weight; /*< Desired weighting on the
* load. Expressed in .1%
* increments
*/
#if defined(SS_DEBUG)
skygw_chk_t be_chk_tail;
#endif