Code Monkey home page Code Monkey logo

es-data-generator-charm's Introduction

elasticsearch-data-provider

Description

This charm is meant only to test the Elasticsearch Operator charm. It will operate a container that generates random data for some period of time and then just wait in a loop (this is so users don't inadvertently add more data to ES than the host system(s) can handle).

Application source repository: https://github.com/justinmclark/elasticsearch-test-data

Usage

Get the proper charm repos on your machine

# elasticsearch-operator is under active development, use the "develop" branch for most recent updates
git clone [email protected]:canonical/elasticsearch-operator.git
git clone [email protected]:justinmclark/es-data-generator-charm.git

Install dependencies

snap install juju --classic
snap install microk8s --classic
microk8s.enable dns storage

Setup your Juju environment

juju bootstrap microk8s mk8s
juju add-model lma
juju create-storage-pool operator-storage kubernetes storage-class=microk8s-hostpath
cd {PATH_TO_ES_OPERATOR_DIR} && charmcraft build && juju deploy ./elasticsearch-operator.charm
cd {PATH_TO_ES_DATA_PROVIDER_DIR} && charmcraft build && juju deploy ./es-data-provider.charm

# consider making Elasticsearch HA
juju add-unit -n2 elasticsearch-operator

# wait for all units/pods to be active
juju status --color
microk8s.kubectl get all -n lma

# add the relation and check out the data being inserted into the ES cluster
juju add-relation elasticsearch-operator es-data-provider

# find ES_APP_ADDRESS via juju status and ES_HTTP_PORT defaults to 9200 and is defined in the ES operator config
curl -X GET "{ES_APP_ADDRESS}:{ES_HTTP_PORT}/_stats?pretty"

es-data-generator-charm's People

Contributors

justinmclark avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.