2013-06-28 10:29:40 -04:00
|
|
|
Google Compute Engine Cloud Plugin for Elasticsearch
|
2013-06-28 03:45:02 -04:00
|
|
|
====================================================
|
|
|
|
|
|
|
|
The GCE Cloud plugin allows to use GCE API for the unicast discovery mechanism.
|
|
|
|
|
2014-08-05 08:16:58 -04:00
|
|
|
In order to install the plugin, run:
|
2013-06-28 03:45:02 -04:00
|
|
|
|
2014-08-05 08:16:58 -04:00
|
|
|
```sh
|
2014-08-06 17:14:47 -04:00
|
|
|
bin/plugin -install elasticsearch/elasticsearch-cloud-gce/2.3.0
|
2014-08-05 08:16:58 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
You need to install a version matching your Elasticsearch version:
|
2014-03-11 12:39:10 -04:00
|
|
|
|
2014-08-05 08:16:58 -04:00
|
|
|
| Elasticsearch | GCE Cloud Plugin | Docs |
|
2014-08-05 08:16:58 -04:00
|
|
|
|------------------------|-------------------|------------------------------------------------------------------------------------------------------------------------------------|
|
|
|
|
| master | Build from source | See below |
|
2014-08-06 17:07:24 -04:00
|
|
|
| es-1.x | Build from source | [2.4.0-SNAPSHOT](https://github.com/elasticsearch/elasticsearch-cloud-gce/tree/es-1.x/#google-compute-engine-cloud-plugin-for-elasticsearch)|
|
2014-08-06 17:14:47 -04:00
|
|
|
| es-1.3 | 2.3.0 | [2.3.0](https://github.com/elasticsearch/elasticsearch-cloud-gce/tree/v2.3.0/#version-230-for-elasticsearch-13) |
|
2014-08-05 08:16:58 -04:00
|
|
|
| es-1.2 | 2.2.0 | [2.2.0](https://github.com/elasticsearch/elasticsearch-cloud-gce/tree/v2.2.0/#google-compute-engine-cloud-plugin-for-elasticsearch)|
|
|
|
|
| es-1.1 | 2.1.2 | [2.1.2](https://github.com/elasticsearch/elasticsearch-cloud-gce/tree/v2.1.2/#google-compute-engine-cloud-plugin-for-elasticsearch)|
|
|
|
|
| es-1.0 | 2.0.1 | [2.0.1](https://github.com/elasticsearch/elasticsearch-cloud-gce/tree/v2.0.1/#google-compute-engine-cloud-plugin-for-elasticsearch)|
|
|
|
|
| es-0.90 | 1.3.0 | [1.3.0](https://github.com/elasticsearch/elasticsearch-cloud-gce/tree/v1.3.0/#google-compute-engine-cloud-plugin-for-elasticsearch)|
|
2014-01-13 08:56:26 -05:00
|
|
|
|
2014-08-05 08:16:58 -04:00
|
|
|
To build a `SNAPSHOT` version, you need to build it with Maven:
|
2014-03-26 14:56:41 -04:00
|
|
|
|
2014-08-05 08:16:58 -04:00
|
|
|
```bash
|
|
|
|
mvn clean install
|
2014-08-05 08:16:58 -04:00
|
|
|
plugin --install cloud-gce \
|
2014-08-05 08:16:58 -04:00
|
|
|
--url file:target/releases/elasticsearch-cloud-gce-X.X.X-SNAPSHOT.zip
|
|
|
|
```
|
2014-03-26 14:56:41 -04:00
|
|
|
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
Google Compute Engine Virtual Machine Discovery
|
|
|
|
===============================
|
|
|
|
|
|
|
|
Google Compute Engine VM discovery allows to use the google APIs to perform automatic discovery (similar to multicast in non hostile
|
|
|
|
multicast environments). Here is a simple sample configuration:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
cloud:
|
|
|
|
gce:
|
|
|
|
project_id: <your-google-project-id>
|
|
|
|
zone: <your-zone>
|
|
|
|
discovery:
|
|
|
|
type: gce
|
|
|
|
```
|
|
|
|
|
|
|
|
How to start (short story)
|
|
|
|
--------------------------
|
|
|
|
|
2014-06-19 19:27:29 -04:00
|
|
|
* Create Google Compute Engine instance (with compute rw permissions)
|
2013-06-28 03:45:02 -04:00
|
|
|
* Install Elasticsearch
|
|
|
|
* Install Google Compute Engine Cloud plugin
|
|
|
|
* Modify `elasticsearch.yml` file
|
|
|
|
* Start Elasticsearch
|
|
|
|
|
|
|
|
How to start (long story)
|
|
|
|
--------------------------
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
|
|
|
Before starting, you should have:
|
|
|
|
|
|
|
|
* Your project ID. Let's say here `es-cloud`. Get it from [Google APIS Console](https://code.google.com/apis/console/).
|
2014-06-15 04:57:43 -04:00
|
|
|
* [Google Cloud SDK](https://developers.google.com/cloud/sdk/)
|
2013-06-28 03:45:02 -04:00
|
|
|
|
2014-06-15 04:57:43 -04:00
|
|
|
If you did not set it yet, you can define your default project you will work on:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
gcloud config set project es-cloud
|
|
|
|
```
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
### Creating your first instance
|
|
|
|
|
|
|
|
|
|
|
|
```sh
|
2014-06-15 04:57:43 -04:00
|
|
|
gcutil addinstance myesnode1 \
|
2013-07-08 16:44:18 -04:00
|
|
|
--service_account_scope=compute-rw,storage-full \
|
|
|
|
--persistent_boot_disk
|
2013-06-28 03:45:02 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
You will be asked to open a link in your browser. Login and allow access to listed services.
|
|
|
|
You will get back a verification code. Copy and paste it in your terminal.
|
|
|
|
|
|
|
|
You should get `Authentication successful.` message.
|
|
|
|
|
|
|
|
Then, choose your zone. Let's say here that we choose `europe-west1-a`.
|
|
|
|
|
|
|
|
Choose your compute instance size. Let's say `f1-micro`.
|
|
|
|
|
2014-06-15 04:57:43 -04:00
|
|
|
Choose your OS. Let's say `projects/debian-cloud/global/images/debian-7-wheezy-v20140606`.
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
You may be asked to create a ssh key. Follow instructions to create one.
|
|
|
|
|
|
|
|
When done, a report like this one should appears:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
Table of resources:
|
|
|
|
|
|
|
|
+-----------+--------------+-------+---------+--------------+----------------+----------------+----------------+---------+----------------+
|
|
|
|
| name | machine-type | image | network | network-ip | external-ip | disks | zone | status | status-message |
|
|
|
|
+-----------+--------------+-------+---------+--------------+----------------+----------------+----------------+---------+----------------+
|
|
|
|
| myesnode1 | f1-micro | | default | 10.240.20.57 | 192.158.29.199 | boot-myesnode1 | europe-west1-a | RUNNING | |
|
|
|
|
+-----------+--------------+-------+---------+--------------+----------------+----------------+----------------+---------+----------------+
|
|
|
|
```
|
|
|
|
|
2014-06-15 04:57:43 -04:00
|
|
|
You can now connect to your instance:
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
```
|
2014-06-15 04:57:43 -04:00
|
|
|
# Connect using google cloud SDK
|
|
|
|
gcloud compute ssh myesnode1 --zone europe-west1-a
|
|
|
|
|
|
|
|
# Or using SSH with external IP address
|
2013-06-28 03:45:02 -04:00
|
|
|
ssh -i ~/.ssh/google_compute_engine 192.158.29.199
|
|
|
|
```
|
|
|
|
|
2014-06-19 19:27:29 -04:00
|
|
|
*Note Regarding Service Account Permissions*
|
|
|
|
|
|
|
|
It's important when creating an instance that the correct permissions are set. At a minimum, you must ensure you have:
|
|
|
|
|
|
|
|
```
|
|
|
|
service_account_scope=compute-rw
|
|
|
|
```
|
|
|
|
|
|
|
|
Failing to set this will result in unauthorized messages when starting Elasticsearch.
|
|
|
|
See [Machine Permissions](#machine-permissions).
|
|
|
|
|
2013-06-28 03:45:02 -04:00
|
|
|
Once connected, install Elasticsearch:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
sudo apt-get update
|
|
|
|
|
|
|
|
# Download Elasticsearch
|
2014-06-15 04:57:43 -04:00
|
|
|
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.2.1.deb
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
# Prepare Java installation
|
|
|
|
sudo apt-get install java7-runtime-headless
|
|
|
|
|
|
|
|
# Prepare Elasticsearch installation
|
2014-06-15 04:57:43 -04:00
|
|
|
sudo dpkg -i elasticsearch-1.2.1.deb
|
2013-06-28 03:45:02 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
### Install elasticsearch cloud gce plugin
|
|
|
|
|
|
|
|
Install the plugin:
|
|
|
|
|
|
|
|
```sh
|
2013-06-28 10:25:19 -04:00
|
|
|
# Use Plugin Manager to install it
|
2014-06-15 04:57:43 -04:00
|
|
|
sudo /usr/share/elasticsearch/bin/plugin --install elasticsearch/elasticsearch-cloud-gce/2.2.0
|
2013-06-28 03:45:02 -04:00
|
|
|
|
2013-06-28 10:25:19 -04:00
|
|
|
# Configure it:
|
2013-06-28 03:45:02 -04:00
|
|
|
sudo vi /etc/elasticsearch/elasticsearch.yml
|
|
|
|
```
|
|
|
|
|
|
|
|
And add the following lines:
|
|
|
|
|
|
|
|
```yaml
|
2014-06-15 04:57:43 -04:00
|
|
|
cloud:
|
|
|
|
gce:
|
|
|
|
project_id: es-cloud
|
|
|
|
zone: europe-west1-a
|
|
|
|
discovery:
|
|
|
|
type: gce
|
2013-06-28 03:45:02 -04:00
|
|
|
```
|
|
|
|
|
2013-06-28 10:25:19 -04:00
|
|
|
|
2014-06-15 04:57:43 -04:00
|
|
|
Start elasticsearch:
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
```sh
|
2014-06-15 04:57:43 -04:00
|
|
|
sudo /etc/init.d/elasticsearch start
|
2013-06-28 03:45:02 -04:00
|
|
|
```
|
|
|
|
|
2013-07-08 16:44:18 -04:00
|
|
|
If anything goes wrong, you should check logs:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
tail -f /var/log/elasticsearch/elasticsearch.log
|
|
|
|
```
|
|
|
|
|
|
|
|
If needed, you can change log level to `TRACE` by modifying `sudo vi /etc/elasticsearch/logging.yml`:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
# discovery
|
|
|
|
discovery.gce: TRACE
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-28 03:45:02 -04:00
|
|
|
### Cloning your existing machine
|
|
|
|
|
2013-06-28 10:25:19 -04:00
|
|
|
In order to build a cluster on many nodes, you can clone your configured instance to new nodes.
|
|
|
|
You won't have to reinstall everything!
|
|
|
|
|
|
|
|
First create an image of your running instance and upload it to Google Cloud Storage:
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
```sh
|
2013-06-28 10:25:19 -04:00
|
|
|
# Create an image of yur current instance
|
2014-06-15 04:57:43 -04:00
|
|
|
sudo /usr/bin/gcimagebundle -d /dev/sda -o /tmp/
|
2013-06-28 03:45:02 -04:00
|
|
|
|
2013-06-28 10:25:19 -04:00
|
|
|
# An image has been created in `/tmp` directory:
|
|
|
|
ls /tmp
|
2013-06-28 03:45:02 -04:00
|
|
|
e4686d7f5bf904a924ae0cfeb58d0827c6d5b966.image.tar.gz
|
|
|
|
|
2013-06-28 10:25:19 -04:00
|
|
|
# Upload your image to Google Cloud Storage:
|
|
|
|
# Create a bucket to hold your image, let's say `esimage`:
|
2013-06-28 03:45:02 -04:00
|
|
|
gsutil mb gs://esimage
|
|
|
|
|
2013-06-28 10:25:19 -04:00
|
|
|
# Copy your image to this bucket:
|
2013-06-28 03:45:02 -04:00
|
|
|
gsutil cp /tmp/e4686d7f5bf904a924ae0cfeb58d0827c6d5b966.image.tar.gz gs://esimage
|
|
|
|
|
2013-07-01 11:56:41 -04:00
|
|
|
# Then add your image to images collection:
|
2014-06-15 04:57:43 -04:00
|
|
|
gcutil addimage elasticsearch-1-2-1 gs://esimage/e4686d7f5bf904a924ae0cfeb58d0827c6d5b966.image.tar.gz
|
2013-07-08 16:44:18 -04:00
|
|
|
|
|
|
|
# If the previous command did not work for you, logout from your instance
|
|
|
|
# and launch the same command from your local machine.
|
2013-06-28 03:45:02 -04:00
|
|
|
```
|
|
|
|
|
2013-06-28 10:25:19 -04:00
|
|
|
### Start new instances
|
|
|
|
|
2013-06-28 10:29:40 -04:00
|
|
|
As you have now an image, you can create as many instances as you need:
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
```sh
|
2013-06-28 10:25:19 -04:00
|
|
|
# Just change node name (here myesnode2)
|
2014-06-15 04:57:43 -04:00
|
|
|
gcutil addinstance --image=elasticsearch-1-2-1 myesnode2
|
|
|
|
|
|
|
|
# If you want to provide all details directly, you can use:
|
|
|
|
gcutil addinstance --image=elasticsearch-1-2-1 \
|
2013-06-28 03:45:02 -04:00
|
|
|
--kernel=projects/google/global/kernels/gce-v20130603 myesnode2 \
|
|
|
|
--zone europe-west1-a --machine_type f1-micro --service_account_scope=compute-rw \
|
|
|
|
--persistent_boot_disk
|
|
|
|
```
|
|
|
|
|
2013-06-28 10:25:19 -04:00
|
|
|
### Remove an instance (aka shut it down)
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
You can use [Google Cloud Console](https://cloud.google.com/console) or CLI to manage your instances:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# Stopping and removing instances
|
2014-06-15 04:57:43 -04:00
|
|
|
gcutil deleteinstance myesnode1 myesnode2 \
|
2013-07-08 16:44:18 -04:00
|
|
|
--zone=europe-west1-a
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
# Consider removing disk as well if you don't need them anymore
|
2014-06-15 04:57:43 -04:00
|
|
|
gcutil deletedisk boot-myesnode1 boot-myesnode2 \
|
2013-07-08 16:44:18 -04:00
|
|
|
--zone=europe-west1-a
|
2013-06-28 03:45:02 -04:00
|
|
|
```
|
|
|
|
|
2014-08-06 16:48:54 -04:00
|
|
|
Using zones
|
|
|
|
-----------
|
|
|
|
|
|
|
|
`cloud.gce.zone` helps to retrieve instances running in a given zone. It should be one of the
|
|
|
|
[GCE supported zones](https://developers.google.com/compute/docs/zones#available).
|
|
|
|
|
|
|
|
The GCE discovery can support multi zones although you need to be aware of network latency between zones.
|
|
|
|
To enable discovery across more than one zone, just enter add your zone list to `cloud.gce.zone` setting:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
cloud:
|
|
|
|
gce:
|
|
|
|
project_id: <your-google-project-id>
|
|
|
|
zone: <your-zone1>, <your-zone2>
|
|
|
|
discovery:
|
|
|
|
type: gce
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-06-28 09:44:52 -04:00
|
|
|
Filtering by tags
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
The GCE discovery can also filter machines to include in the cluster based on tags using `discovery.gce.tags` settings.
|
|
|
|
For example, setting `discovery.gce.tags` to `dev` will only filter instances having a tag set to `dev`. Several tags
|
|
|
|
set will require all of those tags to be set for the instance to be included.
|
|
|
|
|
|
|
|
One practical use for tag filtering is when an GCE cluster contains many nodes that are not running
|
|
|
|
elasticsearch. In this case (particularly with high ping_timeout values) there is a risk that a new node's discovery
|
|
|
|
phase will end before it has found the cluster (which will result in it declaring itself master of a new cluster
|
|
|
|
with the same name - highly undesirable). Adding tag on elasticsearch GCE nodes and then filtering by that
|
|
|
|
tag will resolve this issue.
|
|
|
|
|
|
|
|
Add your tag when building the new instance:
|
|
|
|
|
|
|
|
```sh
|
2013-07-08 16:44:18 -04:00
|
|
|
gcutil --project=es-cloud addinstance myesnode1 \
|
|
|
|
--service_account_scope=compute-rw \
|
|
|
|
--persistent_boot_disk \
|
2013-06-28 09:44:52 -04:00
|
|
|
--tags=elasticsearch,dev
|
|
|
|
```
|
|
|
|
|
|
|
|
Then, define it in `elasticsearch.yml`:
|
|
|
|
|
|
|
|
```yaml
|
2014-06-15 04:57:43 -04:00
|
|
|
cloud:
|
|
|
|
gce:
|
|
|
|
project_id: es-cloud
|
|
|
|
zone: europe-west1-a
|
|
|
|
discovery:
|
|
|
|
type: gce
|
2013-06-28 09:44:52 -04:00
|
|
|
gce:
|
2014-06-15 04:57:43 -04:00
|
|
|
tags: elasticsearch, dev
|
2013-06-28 09:44:52 -04:00
|
|
|
```
|
|
|
|
|
2013-07-08 09:44:24 -04:00
|
|
|
Changing default transport port
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
By default, elasticsearch GCE plugin assumes that you run elasticsearch on 9300 default port.
|
|
|
|
But you can specify the port value elasticsearch is meant to use using google compute engine metadata `es_port`:
|
|
|
|
|
|
|
|
### When creating instance
|
|
|
|
|
|
|
|
Add `--metadata=es_port:9301` option:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# when creating first instance
|
2014-06-15 04:57:43 -04:00
|
|
|
gcutil addinstance myesnode1 \
|
2013-07-08 16:44:18 -04:00
|
|
|
--service_account_scope=compute-rw,storage-full \
|
|
|
|
--persistent_boot_disk \
|
|
|
|
--metadata=es_port:9301
|
2013-07-08 09:44:24 -04:00
|
|
|
|
|
|
|
# when creating an instance from an image
|
2014-06-15 04:57:43 -04:00
|
|
|
gcutil addinstance --image=elasticsearch-1-0-0-RC1 \
|
2013-07-08 09:44:24 -04:00
|
|
|
--kernel=projects/google/global/kernels/gce-v20130603 myesnode2 \
|
|
|
|
--zone europe-west1-a --machine_type f1-micro --service_account_scope=compute-rw \
|
|
|
|
--persistent_boot_disk --metadata=es_port:9301
|
|
|
|
```
|
|
|
|
|
|
|
|
### On a running instance
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# Get metadata fingerprint
|
2014-06-15 04:57:43 -04:00
|
|
|
gcutil getinstance myesnode1 --zone=europe-west1-a
|
2013-07-08 09:44:24 -04:00
|
|
|
+------------------------+---------------------------------------------------------------------------------------------------------+
|
|
|
|
| property | value |
|
|
|
|
+------------------------+---------------------------------------------------------------------------------------------------------+
|
|
|
|
| metadata | |
|
|
|
|
| fingerprint | 42WmSpB8rSM= |
|
|
|
|
+------------------------+---------------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
|
|
# Use that fingerprint
|
2014-06-15 04:57:43 -04:00
|
|
|
gcutil setinstancemetadata myesnode1 \
|
2013-07-08 16:44:18 -04:00
|
|
|
--zone=europe-west1-a \
|
|
|
|
--metadata=es_port:9301 \
|
|
|
|
--fingerprint=42WmSpB8rSM=
|
2013-07-08 09:44:24 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2013-06-28 09:44:52 -04:00
|
|
|
Tips
|
|
|
|
----
|
|
|
|
|
2014-06-19 19:27:29 -04:00
|
|
|
### Store project id locally
|
|
|
|
|
2013-06-28 09:44:52 -04:00
|
|
|
If you don't want to repeat the project id each time, you can save it in `~/.gcutil.flags` file using:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
gcutil getproject --project=es-cloud --cache_flag_values
|
|
|
|
```
|
|
|
|
|
|
|
|
`~/.gcutil.flags` file now contains:
|
|
|
|
|
|
|
|
```
|
|
|
|
--project=es-cloud
|
|
|
|
```
|
|
|
|
|
2014-06-19 19:27:29 -04:00
|
|
|
### Machine Permissions
|
|
|
|
|
|
|
|
**Creating machines with gcutil**
|
|
|
|
|
|
|
|
Ensure the following flags are set:
|
|
|
|
|
|
|
|
````
|
|
|
|
--service_account_scope=compute-rw
|
|
|
|
```
|
|
|
|
|
|
|
|
**Creating with console (web)**
|
|
|
|
|
|
|
|
When creating an instance using the web portal, click **Show advanced options**.
|
|
|
|
|
|
|
|
At the bottom of the page, under `PROJECT ACCESS`, choose `>> Compute >> Read Write`.
|
|
|
|
|
|
|
|
**Creating with knife google**
|
|
|
|
|
|
|
|
Set the service account scopes when creating the machine:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ knife google server create www1 \
|
|
|
|
-m n1-standard-1 \
|
|
|
|
-I debian-7-wheezy-v20131120 \
|
|
|
|
-Z us-central1-a \
|
|
|
|
-i ~/.ssh/id_rsa \
|
|
|
|
-x jdoe \
|
|
|
|
--gce-service-account-scopes https://www.googleapis.com/auth/compute.full_control
|
|
|
|
```
|
|
|
|
|
|
|
|
Or, you may use the alias:
|
|
|
|
|
|
|
|
```
|
|
|
|
--gce-service-account-scopes compute-rw
|
|
|
|
```
|
|
|
|
|
|
|
|
If you have created a machine without the correct permissions, you will see `403 unauthorized` error messages. The only
|
|
|
|
way to alter these permissions is to delete the instance (NOT THE DISK). Then create another with the correct permissions.
|
|
|
|
|
2014-08-05 10:07:35 -04:00
|
|
|
|
|
|
|
Testing
|
|
|
|
=======
|
|
|
|
|
|
|
|
Integrations tests in this plugin require working GCE configuration and therefore disabled by default.
|
|
|
|
To enable tests prepare a config file elasticsearch.yml with the following content:
|
|
|
|
|
|
|
|
```
|
|
|
|
cloud:
|
|
|
|
gce:
|
|
|
|
project_id: es-cloud
|
|
|
|
zone: europe-west1-a
|
|
|
|
discovery:
|
|
|
|
type: gce
|
|
|
|
```
|
|
|
|
|
|
|
|
Replaces `project_id` and `zone` with your settings.
|
|
|
|
|
|
|
|
To run test:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
mvn -Dtests.gce=true -Dtests.config=/path/to/config/file/elasticsearch.yml clean test
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2013-06-28 03:45:02 -04:00
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
|
|
|
This software is licensed under the Apache 2 license, quoted below.
|
|
|
|
|
2014-01-29 05:21:45 -05:00
|
|
|
Copyright 2009-2014 Elasticsearch <http://www.elasticsearch.org>
|
2013-06-28 03:45:02 -04:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
|
|
use this file except in compliance with the License. You may obtain a copy of
|
|
|
|
the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
License for the specific language governing permissions and limitations under
|
|
|
|
the License.
|