How to set up number of open file limits for elastic?
It will complain when running if not setup correctly
How to setup vm max size for elastic?
This comes from the documentation and should be verified by elastic on startup
Where to install the archive package?
elastic user home (/home/elastic)
How to fetch/install elastic?
Which version of elastic comes with JDK prepackaged?
From version 7.
What are the essential configuration options for each node?
For every node
# node roles master, data, ingest (set true by default) - node.master = true - node.data = true - node.ingest = false
# For non-masters - discovery.seed_hosts:
Custom attributes:
- node.attr.zone
What’s the difference between local, site and global?
Matches configured network addresses.
local -> loopback: 127.0.0.1
site -> local network eg: 192.168…
global: external network like 200.x.y… etc
How do you make a coordinator only node?
Set all data roles to false (node.master: false, node.data: false, node.ingest: false)
How to setup java VM heap size for the nodes?
- Edit “-Xms” and “-Xmx” options
How to start elastic node in the foreground?
./bin/elasticsearch
What are the default elastic search ports?
-
Where to put the the certificate files?
You can put it inside “config/certs”
How do you create a certificate authority?
How many certificates do I need?
Create one certificate for each node.
How to create the node certificates?
What is DNS verification for the certificates?
You can specify a domain to be verified with the DNS on top of the certificate, allowing the certificate to be used only on the IP/domain it was designed for.
This can be added as an extra option for certutil.
What’s the process for securing a cluster?
What’s the difference between securing the cluster network and the client network?
In a production environment, you’d want the client network (which could be public facing) to have a global CA certificate that you need to purchase.
The cluster network can be self signed (with a CA that you generate).
For internal use only, you can use the same self signed CA.
How to add the certificates to the keystore and trust store?
Cluster network (transport)
Client network (http)
What certificate type is created by certtool by default and what is its characteristic?
How to see the current keys set in the keystore?
bin/elasticsearch-keystore list
What are the configuration options for enabling security?
in config/elasticsearch.yml (for each node)
xpack.security.enabled: true
cluster
xpack. security.transport.ssl.enabled: true # cluster network
xpack. security.transport.ssl.verification_mode: certificate # this is where you would enable full verification for DNS checks if it was global certificate
xpack. security.transport.ssl.keystore.path: certs/ # relative path
xpack. security.transport.ssl.truststore.path: certs/ # relative path
client
xpack. security.http.ssl.enabled: true # cluster network
xpack. security.http.ssl.verification_mode: certificate # this is where you would enable full verification for DNS checks if it was global certificate
xpack. security.http.ssl.keystore.path: certs/ # relative path
xpack. security.http.ssl.truststore.path: certs/ # relative path
What’s the difference between keystore and truststore?
Keystore is used to store private key and identity certificates that a specific program should present to both parties (server or client) for verification.
Truststore is used to store certificates from Certified Authorities (CA) that verify the certificate presented by the server in SSL connection.
https://www.educative.io/answers/keystore-vs-truststore
How are elastic’s built-in users bootstraped?
Built-in user passwords are bootstrapped when you enable security