20 Oct 2021 09:34:55 UTC
- Distribution: Search-Elasticsearch
- Module version: 7.715
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (28)
- Testers (637 / 0 / 0)
- KwaliteeBus factor: 1
- 67.89% Coverage
- License: apache_2_0
- Activity24 month
- Download (129.41KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- COPYRIGHT AND LICENSE
Search::Elasticsearch::CxnPool::Static - A CxnPool for connecting to a remote cluster with a static list of nodes.
$e = Search::Elasticsearch->new( cxn_pool => 'Static' # default nodes => [ 'search1:9200', 'search2:9200' ], );
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.
The list of nodes to use to serve requests. Can accept a single node, multiple nodes, and defaults to
nodesare specified. See "node" in Search::Elasticsearch::Role::Cxn for details of the node specification.
$cxn = $cxn_pool->next_cxn
Returns the next available live node (in round robin fashion), or throws a
NoNodeserror if no nodes respond to ping requests.
Enrico Zimuel <firstname.lastname@example.org>
This software is Copyright (c) 2021 by Elasticsearch BV.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
Module Install Instructions
To install Search::Elasticsearch, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Search::Elasticsearch
For more information on module installation, please visit the detailed CPAN module installation guide.