Code Monkey home page Code Monkey logo

elastic-search-api's Introduction

Elastic Search API for tsuru PaaS

The API goal is to create a communication pipe between tsuru and Elastic Search service.

Installation

It's really easy to install the API using tsuru.

First, you need to create a new app (I'm assuming you already are authenticated and all setup):

$> tsuru app-create elastic-search-api
$> git remote add tsuru git@remote-here

After the app status change to started you can push the API code to the newly created vm:

$> git push tsuru master

If everything works as expected, you should access your vm url/ip (use tsuru app-list to find it) and get a 404, because the API does not have a route to /.

Configuration

With the API set up, you should tell it where is the Elastic Search machine (or vm perhaps), for that you should use the ELASTIC_SEARCH_URL environment variable, to export that variable using tsuru, run the following command:

$> tsuru env-set elastic-search-api ELASTIC_SEARCH_URL=yourelasticsearchurl.com:9200

Now we have to tell tsuru (using crane cmd line) that it has a new service available, do that by running the following:

$> crane create path/to/manifest.yaml

The manifest.yaml file is contained in the API repository.

That's it! You can check if everything worked fine by running:

$> tsuru service-list

The output should be something like that:

+----------------+-----------+
| Services       | Instances |
+----------------+-----------+
| elastic-search |           |
+----------------+-----------+

Common problems

  • API doesn't load: this is probably an access problem at the IaaS level, try to telnet the API vm in the port the API is running (in this case, 80), if it doesn't work, try to open port 80, if you have no access to do that, call someone that has :)

elastic-search-api's People

Contributors

flavianmissi 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.