elasticsearch-net: Cannot assign request address
NEST/Elasticsearch.Net version:6.6
Elasticsearch version:6.7
Description of the problem including expected versus actual behavior:
When big data index
Steps to reproduce: 1. 2. 3.
Provide ConnectionSettings
(if relevant):
var path = Environment.GetEnvironmentVariable(“ESURL”);
if (string.IsNullOrWhiteSpace(path))
{
throw new Exception(“the Environment vairable ESURL is not exist”);
}
var pathArr = path.Split(",", StringSplitOptions.RemoveEmptyEntries);
IEnumerable<Uri> nodes = pathArr.ToList().Select(s => new Uri(s));
var pool = new StaticConnectionPool(nodes);
var settings = new ConnectionSettings(pool).DefaultTypeName(ESClient.DOCUMENTTYPE).ConnectionLimit(1000);
Provide DebugInformation
(if relevant):
Describe the feature:
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 21 (9 by maintainers)
Not the same Exception, I have restored the configuration “ConnectionLimit” to 80, and cancel the ping request for single ES node, I saw the connection had been recycled。 Hope these will help !
I will continue to follow up and update . Thanks for your help , @russcam @Mpdreamz
I am sorry, the information provided before is a bit wrong.
I confirmed that the dotnet runtime of application is using version 2.2, compiling and running on .NET Core 2.2 .
The
<TargetFramework>
of edoc2 application is .NET Core 2.2 .Output of
dotnet --info
The logs are written very frequently and we have not implemented bulk writes yet.
Before trying to modify the default value
80
to1000
, i have tried the default value of “80”, also got an exceptionCannot assign request address
, I thought it would be fine to increase this value,however it doesn’t work and large amount of ESTABLISHED connection appear