Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wonderchang/test2learn-elastic.py
https://github.com/wonderchang/test2learn-elastic.py
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wonderchang/test2learn-elastic.py
- Owner: wonderchang
- Created: 2019-01-20T13:13:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-01T23:38:33.000Z (over 3 years ago)
- Last Synced: 2024-12-15T18:48:24.561Z (about 2 months ago)
- Language: Python
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test2learn Elasticsearch
Prerequisite:
* make 3.81
* Docker 18.09.1Build minimal learnable Elasticsearch clusters
make
Wait for container health checks
$ docker ps --format "table {{.Names}}\t{{.Status}}"
NAMES STATUS
es-master-n1 Up 4 minutes (healthy)
es-master-n2 Up 4 minutes (healthy)
es-replica-n1 Up 4 minutes (healthy)
es-replica-n2 Up 4 minutes (healthy)Run tests to learn
make test
## Minimal learnable architecture
```
Docker Guest | Host
|
|
master --*--- es-master-n1:9200 <-----|-----> localhost:9200
| |
*--- es-master-n2:9200 <-----|-----> localhost:9201
|
replica --*-- es-replica-n1:9200 <-----|-----> localhost:9210
| |
*-- es-replica-n2:9200 <-----|-----> localhost:9211
|
|
------- (network: es-network) ------- |
^ |
| |
v |
test2learn-es <------------|----- $ make test
(pytest, elasticsearch-py-client) |
|
```