From a56327058b8d307fc7fa21eb600ade269d1d8645 Mon Sep 17 00:00:00 2001 From: delvedor Date: Thu, 21 Feb 2019 15:39:15 +0100 Subject: [PATCH] Updated docs --- docs/authentication.asciidoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/authentication.asciidoc b/docs/authentication.asciidoc index 5038508d4..f1a8ff823 100644 --- a/docs/authentication.asciidoc +++ b/docs/authentication.asciidoc @@ -48,9 +48,12 @@ const client = new Client({ == Elastic Cloud If you are using https://www.elastic.co/cloud[Elastic Cloud], the client offers a easy way to connect to it via the `cloud` option. + -You must pass the cloud id that you can find in the cloud console, then your username and password. +You must pass the Cloud ID that you can find in the cloud console, then your username and password. -NOTE: Do not enable sniffing when using Elastic Cloud, since the nodes are behind a load balancer, the Cloud will take care of everything. +NOTE: When connecting to Elastic Cloud, the client will automatically enable both request and response compression by default, since it yields significant throughput improvements. + +You can still disable the compression with `{ compression: false, suggestCompression: false }`. + +IMPORTANT: Do not enable sniffing when using Elastic Cloud, since the nodes are behind a load balancer, Elastic Cloud will take care of everything for you. [source,js] ----