Cannot assign request address
See original GitHub issueNEST/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:
Issue Analytics
- State:
- Created 4 years ago
- Comments:21 (9 by maintainers)
Top Results From Across the Web
Cannot assign requested address - possible causes?
I have a program that consists of a master server and distributed slave servers. The slave servers send status updates to the server,...
Read more >Failed to set up listener: SocketException: Cannot assign ...
The message “Cannot assign requested address” suggests that the hostname/IP you are trying to bind does not resolve to a local network ......
Read more >What do I do if the "Cannot assign requested address" error ...
This topic describes how to resolve the Cannot assign requested address error that occurs when a client accesses an ApsaraDB for Redis ...
Read more >Cannot Assign Requested Address: A Step-By-Step Guide
The requested address that the system cannot assign a bug usually happens when the binding hostname does not have a local network interface....
Read more >Docker Containers and localhost: Cannot Assign ...
The website's API proxy class kept barfing up this error message every time I tried to call any API endpoints. Cannot assign requested...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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