27
1 Elasticsearch Best Practice Architecture The webinar will start soon...

Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

  • Upload
    others

  • View
    11

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

1

Elasticsearch Best Practice Architecture

The webinar will start soon...

Page 2: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

2

whoami

Eric Westberg

Solutions Architect

Stockholm, Sweden

Joined Elastic last year

Page 3: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

3

Webinar Housekeeping & Logistics

• Slides and recording will be available following the webinar

• Please ask questions via “Q&A”

Page 4: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

Store, Search, & AnalyzeElasticsearch

Visualize & ManageKibana

Beats IngestLogstash

Metrics

Logging

APM

SiteSearch

Application Search

BusinessAnalytics

EnterpriseSearch

SecurityAnalytics

Future

SaaS

Elastic Cloud

Self Managed

Elastic CloudEnterprise Standalone

Deployment

Elastic Stack

Solutions

Page 5: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

5

Inside an ElasticsearchCluster

Page 6: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

6 All product names, logos, and brands are property of their respective owners and are used only for identification purposes. This is not an endorsement.

Elasticsearch Node Types

Elasticsearch

Master (3)

Ingest (X)

Data – Hot (X)

Data – Warm (X)

Machine Learning (2+)

Coordinating (X)

Alerting (X)

• Master Nodes– Control the cluster, requires a minimum of 3, one is active at any given time

• Data Nodes– Hold indexed data and perform data related operations– Differentiated Hot and Warm Data nodes can be used

• Ingest Nodes– Use ingest pipelines to transform and enrich before indexing

• Coordinating Nodes– Route requests, handle search reduce phase, distribute bulk indexing– All nodes function as coordinating nodes

• Alerting Nodes– Run alerting jobs

• Machine Learning Nodes– Run machine learning jobs

Nodes can play one or more roles, for workload isolation and scaling

Page 7: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

7

Split Brain

• Cluster with 3 master eligible nodes• Concern if network becomes partitioned• The cluster would inadvertently elect two masters, which is referred to

“split brain”

Network disconnection

node 1 node 2 node 3

Page 8: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

8

Avoiding Split Brain

• A master eligible node needs at least minimum_master_nodes votes to win an election‒ Setting it to a quorum prevents the split brain scenario

• Recommendation for production clusters is to have 3 dedicated master eligible nodes‒ with the setting minimum_master_nodes = 2

Network partition

node 1 node 2 node 3

Page 9: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

9 All product names, logos, and brands are property of their respective owners and are used only for identification purposes. This is not an endorsement.

Inside a Large Elasticsearch Logging Cluster Reduce infrastructure costs, isolate workloads, and manage data lifecycle

ElasticsearchMaster

Hot Data Warm Data

Ingest

MachineLearning

Coordinating

Index Query

Alerting

Response

Curator

Page 10: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

10

Logging Architectures

Page 11: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

11 All product names, logos, and brands are property of their respective owners and are used only for identification purposes. This is not an endorsement.

Elasticsearch

Uniform Nodes (3+)

Quick StartBeats, Elasticsearch and Kibana

KibanaHEARTBEAT

Beats

FILEBEAT

METRICBEAT

PACKETBEAT

WINLOGBEAT

AUDITBEAT

File SpoolQueue

Page 12: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

12

Elasticsearch

Kibana

Advanced Processing and ResiliencyAdding Logstash processing, differentiated Elasticsearch node types

Master Nodes (3)

Data Nodes (2+)

Logstash

Workers (1+)

ML Nodes (2+)PersistentQueues

HEARTBEAT

Beats

FILEBEAT

METRICBEAT

PACKETBEAT

WINLOGBEAT

AUDITBEAT

File SpoolQueue

Page 13: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

13 All product names, logos, and brands are property of their respective owners and are used only for identification purposes. This is not an endorsement.

Flexible ingestion and input sources

Data store Web APIs

Social Sensors

Kafka

Redis

MessagingQueue

Logstash

Workers (2+)

Kibana

Elasticsearch

Master (3)

Ingest (X)

Data – Hot (X)

Data – Warm (X)

Machine Learning (2+)

Coordinating (X)

Alerting (X)

HEARTBEAT

Beats

FILEBEAT

METRICBEAT

PACKETBEAT

WINGLOGBEAT

AUDITBEAT

Page 14: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

1414

apm-server

Kibana

Datastore JMX

Elasticsearch

Application Metric Collection with Elastic APM

apm-agents

NodeJS Python

Real User Monitoring(RUM)

APM Curated App

LogstashBeats

Page 15: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

15

Deployment Best Practices

Page 16: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

16 All product names, logos, and brands are property of their respective owners and are used only for identification purposes. This is not an endorsement.

Centralized Monitoring Cluster Maintain isolated monitoring cluster for monitoring workload isolation

ElasticsearchMonitoring Cluster

MonitoringData

Beats

Logstash

Elasticsearch

Kibana

Logstash

Elasticsearch

Kibana MonitoringData

MonitoringData

Page 17: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

17 All product names, logos, and brands are property of their respective owners and are used only for identification purposes. This is not an endorsement.

Cloud Monitoring Cluster Opt-in Elastic Cloud cluster for monitoring on-premise stack

Elastic CloudMonitoring Cluster

Beats

Logstash

Elasticsearch

Kibana MonitoringData

On-Prem Cluster

Page 18: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

18 All product names, logos, and brands are property of their respective owners and are used only for identification purposes. This is not an endorsement.

Isolated Audit Logging Cluster Maintain isolated audit logging cluster for increased security and compliance

ElasticsearchAudit LogCluster Kibana

Elasticsearch Audit Logs

ElasticsearchCluster 2

ElasticsearchCluster 1

ElasticsearchCluster 3

Audit and Compliance

Page 19: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

19

Multi Data Center

Page 20: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

20 All product names, logos, and brands are property of their respective owners and are used only for identification purposes. This is not an endorsement.

Logstash Kibana

Multiple Data Centers, Duplicate Data

Kafka

Redis

MessagingQueue

Elasticsearch

LoadBalancer

ACTIVE

Logstash KibanaElasticsearch

ACTIVE

Kafka

Redis

MessagingQueue

Rep

licat

ion

Page 21: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

21

Multi Data Centers with a Queue at Each DC

Logstash Elasticsearch

Datastore Web APIs

Beats

Logstash MessagingQueue

Kafka

DC1

Datastore Web APIs

Beats

Logstash MessagingQueue

Kafka

DC2

Page 22: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

22 All product names, logos, and brands are property of their respective owners and are used only for identification purposes. This is not an endorsement.

Logstash Kibana

Multi Data Center, Distinct Data and Cross-Cluster Search

ElasticsearchBeats

ElasticsearchCross-ClusterSearch Cluster Kibana

Logstash KibanaElasticsearchBeats

Page 23: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

23

Scaling Kibana

Page 24: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

24

High AvailabilityPair two coordinating nodes with two independent Kibana nodes

KibanaElasticsearch

Coordinating Node

Host A

KibanaElasticsearch

Coordinating Node

Host B

LoadBalancer

Page 25: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

25

Separating Dashboards by GroupsIsolate user content by group in different Kibana instances

Kibana

Kibana

Kibana

Elasticsearch

Group A

Group B

Group C

Page 26: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

Questions?

Page 27: Elasticsearch Best Practice Architecture The webinar will ... · Store, Search, & Analyze Elasticsearch Kibana Visualize & Manage Beats Ingest Logstash Metrics Logging APM Site Search

Thank You● Web : www.elastic.co ● Products : https://www.elastic.co/products ● Forums : https://discuss.elastic.co/ ● Community : https://www.elastic.co/community/meetups● Twitter : @elastic ● Contact us : www.elastic.co/contact