0
如何使用以下信息劃分3臺服務器之間的所有傳入流量? 我正在配置3個或更多星號服務器的kamailio。我在數據庫上配置了dr_rules.gwlist表。使用動態路由的卡邁里奧負載均衡
mysql> select * from dr_gateways;
+------+------+--------------------+-------+------------+-------+-------------+
| gwid | type | address | strip | pri_prefix | attrs | description |
+------+------+--------------------+-------+------------+-------+-------------+
| 5 | 10 | 192.168.50.11:5060 | 0 | NULL | NULL | |
| 6 | 10 | 192.168.50.12:5060 | 0 | NULL | NULL | |
| 9 | 10 | 192.168.50.16:5060 | 0 | NULL | NULL | |
+------+------+--------------------+-------+------------+-------+-------------+
3 rows in set (0.00 sec)
mysql> select * from dr_rules;
+--------+---------+----------+-----------------+----------+---------+-----------------------+-------------+
| ruleid | groupid | prefix | timerec | priority | routeid | gwlist | description |
+--------+---------+----------+-----------------+----------+---------+-----------------------+-------------+
| 13 | 0 | 70704070 | | 0 | 0 | 6,9;9,6;6,9,5 | |
+--------+---------+----------+-----------------+----------+---------+-----------------------+-------------+
7 rows in set (0.00 sec)
我想平衡與70704070前綴3服務器的後續優先級的所有通信:
gwid6 = 40%
gwid9 = 40%
gwid5 = 20%