Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Search::Elasticsearch:UserPContributedePech::Elasticsearch::CxnPool::Static(3)

NAME
       Search::Elasticsearch::CxnPool::Static -	A CxnPool for connecting to a
       remote cluster with a static list of nodes.

VERSION
       version 6.00

SYNOPSIS
	   $e =	Search::Elasticsearch->new(
	       cxn_pool	=> 'Static'	# default
	       nodes	=> [
		   'search1:9200',
		   'search2:9200'
	       ],
	   );

DESCRIPTION
       The Static connection pool, which is the	default, should	be used	when
       you don't have direct access to the Elasticsearch cluster, eg when you
       are accessing the cluster through a proxy.  It round-robins through the
       nodes that you specified, and pings each	node before it is used for
       the first time, to ensure that it is responding.

       If any node fails, then all nodes are pinged before the next request to
       ensure that they	are still alive	and responding.	 Failed	nodes will be
       pinged regularly	to check if they have recovered.

       This class does Search::Elasticsearch::Role::CxnPool::Static and
       Search::Elasticsearch::Role::Is_Sync.

CONFIGURATION
   "nodes"
       The list	of nodes to use	to serve requests.  Can	accept a single	node,
       multiple	nodes, and defaults to "localhost:9200"	if no "nodes" are
       specified. See "node" in	Search::Elasticsearch::Role::Cxn for details
       of the node specification.

   See also
       o   "request_timeout" in	Search::Elasticsearch::Role::Cxn

       o   "ping_timeout" in Search::Elasticsearch::Role::Cxn

       o   "dead_timeout" in Search::Elasticsearch::Role::Cxn

       o   "max_dead_timeout" in Search::Elasticsearch::Role::Cxn

   Inherited configuration
       From Search::Elasticsearch::Role::CxnPool

       o   randomize_cxns

METHODS
   "next_cxn()"
	   $cxn	= $cxn_pool->next_cxn

       Returns the next	available live node (in	round robin fashion), or
       throws a	"NoNodes" error	if no nodes respond to ping requests.

   Inherited methods
       From Search::Elasticsearch::Role::CxnPool::Static

       o   schedule_check()

       From Search::Elasticsearch::Role::CxnPool

       o   cxn_factory()

       o   logger()

       o   serializer()

       o   current_cxn_num()

       o   cxns()

       o   seed_nodes()

       o   next_cxn_num()

       o   set_cxns()

       o   request_ok()

       o   request_failed()

       o   should_retry()

       o   should_mark_dead()

       o   cxns_str()

       o   cxns_seeds_str()

       o   retries()

       o   reset_retries()

AUTHOR
       Clinton Gormley <drtech@cpan.org>

COPYRIGHT AND LICENSE
       This software is	Copyright (c) 2017 by Elasticsearch BV.

       This is free software, licensed under:

	 The Apache License, Version 2.0, January 2004

perl v5.32.0			  201Search::Elasticsearch::CxnPool::Static(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | CONFIGURATION | METHODS | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Search::Elasticsearch::CxnPool::Static&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help