[MXS-1069] Unable to find server Created: 2016-12-30 Updated: 2017-01-02 Resolved: 2017-01-02 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Documentation |
| Affects Version/s: | 2.0.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Juan Valentín-Pastrana | Assignee: | markus makela |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | tests | ||
| Environment: |
Testing maxscale on Ubuntu 64, MariaDB 10.1.20 |
||
| Description |
|
Cluster server names are maria1, maria2 & maria3. Cluster is replication. I can access them from maxscale host using: When starting maxscale I get: That for all three servers. My maxscale.cnf contains: And names are accessible via /etc/hosts. Please help, I can't go any further with maxscale. |
| Comments |
| Comment by Juan Valentín-Pastrana [ 2017-01-01 ] | ||||||||||
|
First node must be started issuing
| ||||||||||
| Comment by markus makela [ 2017-01-02 ] | ||||||||||
|
The names listed in the servers parameter need to be the server section names defined in maxscale.cnf. In your configuration file, the server at 192.168.1.122:3306 would be named server2:
You would configure the service to use this server by adding it to the servers parameter:
You need to add server definitions for all of the servers that you are going to use. You can use the host names from /etc/hosts as values for the address parameter. Here's a tutorial on how to set up MaxScale that could be useful. |