M
M
Marfa Belova2019-04-22 10:42:10
MySQL
Marfa Belova, 2019-04-22 10:42:10

How to make Asterisk work with MySQL replication?

Given:
Asterisk telephony server.
MS replication configured under it on Mysql.
Several third-party applications (monitoring, web face for Asterisk).
Task:
Configure Asterisk and applications so that reading is done only from the slave, and writing is done to the master (for load balancing).
5cbd6e13aa9e6055455298.pngQuestions:
Is it true that Aster does not allow you to specify in the settings a separate server for reading, separately for writing? There is no information about this in the documentation. How is mysql replication supported then?
If you need to connect an application that does not allow you to specify separate servers for writing and reading, how to take advantage of replication? Is it necessary to configure the layer in the form of haproxy or mysql proxy?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2019-04-22
@Rsa97

CDR and CEL only write to the database without reading anything.
func_odbc specifies a specific dsn for each function.
Dynamic configuration, AFAIK, only reads from the database and does not write anything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question