text stringlengths 0 59.1k |
|---|
[2017-10-02T11:39:32,315][INFO ][o.e.h.n.Netty4HttpServerTransport] [ece3d296-dbd3-46a3-b66c-8b4c282610af] publish_address {10.44.2.5:9200}, bound_addresses {10.44.2.5:9200} |
[2017-10-02T11:39:32,316][INFO ][o.e.n.Node ] [ece3d296-dbd3-46a3-b66c-8b4c282610af] started |
[2017-10-02T11:39:32,331][INFO ][o.e.g.GatewayService ] [ece3d296-dbd3-46a3-b66c-8b4c282610af] recovered [0] indices into cluster_state |
[2017-10-02T11:42:39,410][INFO ][o.e.c.s.ClusterService ] [ece3d296-dbd3-46a3-b66c-8b4c282610af] added {{8bcf8744-c48a-4ebb-86d8-e677a61141b7}{nFExy7_bS--Vcd42xrnFrw}{RQyzD2UnR--UUEfyfPuHgg}{10.44.0.5}{10.44.0.5:9300},}, reason: zen-disco-node-join[{8bcf8744-c48a-4ebb-86d8-e677a61141b7}{nFExy7_bS--Vcd42xrnFrw}{RQyzD2... |
[2017-10-02T11:42:39,470][WARN ][o.e.d.z.ElectMasterService] [ece3d296-dbd3-46a3-b66c-8b4c282610af] value for setting "discovery.zen.minimum_master_nodes" is too low. This can result in data loss! Please set it to at least a quorum of master-eligible nodes (current value: [1], total number of master-eligible nodes used... |
[2017-10-02T11:42:42,586][INFO ][o.e.c.s.ClusterService ] [ece3d296-dbd3-46a3-b66c-8b4c282610af] added {{3b2f3585-7706-416d-bede-c467a46ab30f}{eG6p9sJRQ9yShS97yL3pQg}{JqGe38AeSKmHQfLaICibQA}{10.44.1.5}{10.44.1.5:9300},}, reason: zen-disco-node-join[{3b2f3585-7706-416d-bede-c467a46ab30f}{eG6p9sJRQ9yShS97yL3pQg}{JqGe38... |
``` |
So we have a 3-node Elasticsearch cluster ready to handle more work. |
## Access the service |
*Don't forget* that services in Kubernetes are only acessible from containers in the cluster. For different behavior you should [configure the creation of an external load-balancer](https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer). While it's supported within this example service desc... |
``` |
$ kubectl get service elasticsearch |
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE |
elasticsearch 10.47.252.248 35.200.115.240 9200:31394/TCP,9300:30907/TCP 6m |
``` |
From any host on your cluster (that's running `kube-proxy`), run: |
``` |
$ curl 35.200.115.240:9200 |
``` |
You should see something similar to the following: |
```json |
{ |
"name" : "ece3d296-dbd3-46a3-b66c-8b4c282610af", |
"cluster_name" : "myesdb", |
"cluster_uuid" : "lb76DGaGS1msgwC3w8H9Qg", |
"version" : { |
"number" : "5.6.2", |
"build_hash" : "57e20f3", |
"build_date" : "2017-09-23T13:16:45.703Z", |
"build_snapshot" : false, |
"lucene_version" : "6.6.1" |
}, |
"tagline" : "You Know, for Search" |
} |
``` |
Or if you want to check cluster information: |
``` |
curl 35.189.128.215:9200/_cluster/health?pretty |
``` |
You should see something similar to the following: |
```json |
{ |
"cluster_name" : "myesdb", |
"status" : "green", |
"timed_out" : false, |
"number_of_nodes" : 3, |
"number_of_data_nodes" : 3, |
"active_primary_shards" : 0, |
"active_shards" : 0, |
"relocating_shards" : 0, |
"initializing_shards" : 0, |
"unassigned_shards" : 0, |
"delayed_unassigned_shards" : 0, |
"number_of_pending_tasks" : 0, |
"number_of_in_flight_fetch" : 0, |
"task_max_waiting_in_queue_millis" : 0, |
"active_shards_percent_as_number" : 100.0 |
} |
``` |
<|endoftext|> |
# source: k8s_examples/_archived/elasticsearch/es-svc.yaml type: yaml |
apiVersion: v1 |
kind: Service |
metadata: |
name: elasticsearch |
labels: |
component: elasticsearch |
spec: |
type: LoadBalancer |
selector: |
component: elasticsearch |
ports: |
- name: http |
port: 9200 |
protocol: TCP |
- name: transport |
port: 9300 |
protocol: TCP |
<|endoftext|> |
# source: k8s_examples/_archived/elasticsearch/production_cluster/es-discovery-svc.yaml type: yaml |
apiVersion: v1 |
kind: Service |
metadata: |
name: elasticsearch-discovery |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.