GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ELASTICSEARCH::TESTSERVER (3)

.ds Aq ’

NAME

ElasticSearch::TestServer - Start an ElasticSearch cluster for testing

CONTENTS

SYNOPSIS



    use ElasticSearch::TestServer;

    $ENV{ES_HOME} = /path/to/elasticsearch;
    $ENV{ES_TRANSPORT} = http;

    my $es = ElasticSearch::TestServer->new(
        home        => /path/to/elasticsearch,
        instances   => 3,
        transport   => http,
        ip          => 127.0.0.1,
        trace_calls => logfile,
        port        => 9200,
        config      => { values to override}
    );



DESCRIPTION

ElasticSearch::TestServer is a utility module which will start an ElasticSearch cluster intended for testing, and shut the cluster down at the end, even if your code exits abnormally.

By default, it uses http transport, the local gateway, and starts 3 instances on localhost, starting with port 9200 if the transport is http, httplite, httptiny, curl, aehttp
or 9500 if thrift.

It is a subclass of ElasticSearch, so ElasticSearch::TestServer->new returns an ElasticSearch instance.

AUTHOR

Clinton Gormley, <clinton@traveljury.com>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by Clinton Gormley

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ELASTICSEARCH::TESTSERVER (3) 2013-09-24

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.