This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################### ElasticSearch Configuration Example ##################### | |
# This file contains an overview of various configuration settings, | |
# targeted at operations staff. Application developers should | |
# consult the guide at <http://elasticsearch.org/guide>. | |
# | |
# The installation procedure is covered at | |
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>. | |
# | |
# ElasticSearch comes with reasonable defaults for most settings, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Other way of intracting with ETCD is HTTP/JSON API. | |
Etcd HTTP/JSON API Usage | |
The other way to interacting with etcd is with the simple HTTP/JSON API. | |
To access the API, you can use a simple HTTP program like curl. You must supply the -L flag to follow any redirects that are passed back. From within your cluster, you can use the local 127.0.0.1 interface and port 4001/2379 for most queries. | |
The normal keyspace can be reached by going to http://127.0.0.1:4001/v2/keys/ on any of the host machines. For instance, to get a listing of the top-level keys/directories, type: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.Test procedure | |
A- Take cluster of 3 etcd noses as shown below | |
core@core-02 ~ $ etcdctl cluster-health | |
member 348dd9a63bc9c9d3 is healthy: got healthy result from http://172.17.8.102:2379 | |
member 7d26e3d2ee11a98e is healthy: got healthy result from http://172.17.8.103:2379 | |
member 95d2e7af71fc961d is healthy: got healthy result from http://172.17.8.101:2379 | |
cluster is healthy | |
core@core-02 ~ $ etcdctl member list | |
348dd9a63bc9c9d3: name=219d42232433483c8ad19163ba1c6020 peerURLs=http://172.17.8.102:2380 clientURLs=http://172.17.8.102:2379 isLeader=true | |
7d26e3d2ee11a98e: name=edbfd19500b0496485e286801bdfa04b peerURLs=http://172.17.8.103:2380 clientURLs=http://172.17.8.103:2379 isLeader=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Go to the directory where you have put this docker file. | |
cd <Path to the DockerFile> | |
# Run following to build an docker image | |
docker build -t go-container . | |
#Check image by using docker images. It will show like this. | |
shailendra-kumar:Docker shailendra.kumar$ docker images | |
REPOSITORY TAG IMAGE ID CREATED SIZE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Suppose both files are presenen in functionalTest directory. There is following way to run context on this. | |
#Method 1 | |
[root@marx-vagrant-setup coreos-vagrant]# run-contexts functionalTest | |
10 | |
..... | |
---------------------------------------------------------------------- | |
PASSED! | |
2 contexts, 3 assertions | |
(0.2 seconds) |
NewerOlder