17 lines
482 B
Markdown
17 lines
482 B
Markdown
|
Multiple Connections
|
||
|
====================
|
||
|
|
||
|
You can define multiple endpoints for an Elastica client by specifying them as
|
||
|
multiple connections in the client configuration:
|
||
|
|
||
|
```yaml
|
||
|
fos_elastica:
|
||
|
clients:
|
||
|
default:
|
||
|
connections:
|
||
|
- url: http://es1.example.net:9200
|
||
|
- url: http://es2.example.net:9200
|
||
|
```
|
||
|
|
||
|
For more information on Elastica clustering see http://elastica.io/getting-started/installation.html#section-connect-cluster
|