28 Jul 2022 11:42:27 UTC
- Distribution: Search-Elasticsearch
- Module version: 7.717
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (349 / 3 / 0)
- KwaliteeBus factor: 1
- 67.63% Coverage
- License: apache_2_0
- Activity24 month
- Download (129.95KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- COPYRIGHT AND LICENSE
Search::Elasticsearch::CxnPool::Static::NoPing - A CxnPool for connecting to a remote cluster without the ability to ping.
$e = Search::Elasticsearch->new( cxn_pool => 'Static::NoPing' nodes => [ 'search1:9200', 'search2:9200' ], );
The Static::NoPing connection pool (like the Static pool) should be used when your access to the cluster is limited. However, the
Staticpool needs to be able to ping nodes in the cluster, with a
HEAD /request. If you can't ping your nodes, then you should use the
Static::NoPingconnection pool instead.
Because the cluster cannot be pinged, this CxnPool cannot use a short ping request to determine whether nodes are live or not - it just has to send requests to the nodes to determine whether they are alive or not.
Most of the time, a dead node will cause the request to fail quickly. However, in situations where node failure takes time (eg malfunctioning routers or firewalls), a failure may not be reported until the request itself times out (see "request_timeout" in Search::Elasticsearch::Cxn).
Failed nodes will be retried regularly to check if they have recovered.
This class does Search::Elasticsearch::Role::CxnPool::Static::NoPing and Search::Elasticsearch::Role::Is_Sync.
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 node in round robin fashion - either a live node which has previously responded successfully, or a previously failed node which should be retried. If all nodes are dead, it will throw a
Enrico Zimuel <firstname.lastname@example.org>
This software is Copyright (c) 2022 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.