Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Financial-Times/elasticsearch-mvp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POC for using ElasticSearch

Small application which checks the health of an AES cluster.

⚠️ The AWS SDK for Go does not currently include support for ES data plane api, but the Signer is exposed since v1.2.0.

The taken approach to access ES:

  • Use the v4.Signer provided by the amazon-go-sdk
  • Create an HTTP client wrapping all the requests with Amazon signer
  • Use https://github.com/olivere/elastic library to any ES request, after passing in the above created client

How to run

go get -u github.com/Financial-Times/elasticsearch-mvp
go build
./elasticsearch-mvp --aws-access-key="{access key}" --aws-secret-access-key="{secret key}"

It is also possible to provide the elasticsearch endpoint, region and the port you expect the app to run on.

Available endpoints:

localhost:8080/__health

Provides the standard FT output indicating the connectivity and the cluster's health.

localhost:8080/__health-details

Provides a detailed health status of the ES cluster. It matches the response from elasticsearch-endpoint/_cluster/health

About

Small app to check the health of AES cluster

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •