update orleans
This commit is contained in:
@@ -123,25 +123,15 @@ public static class ApiBootstrap
|
||||
});
|
||||
}
|
||||
|
||||
// Configure networking for better silo communication
|
||||
var advertisedIP = Environment.GetEnvironmentVariable("ORLEANS_ADVERTISED_IP");
|
||||
IPAddress advertisedIPAddress = null;
|
||||
|
||||
if (!string.IsNullOrEmpty(advertisedIP) && IPAddress.TryParse(advertisedIP, out var ipAddress))
|
||||
// Configure networking - simplified for Docker compatibility
|
||||
if (disableOrleansClustering)
|
||||
{
|
||||
advertisedIPAddress = ipAddress;
|
||||
}
|
||||
else if (disableOrleansClustering)
|
||||
{
|
||||
advertisedIPAddress = IPAddress.Loopback;
|
||||
}
|
||||
|
||||
if (advertisedIPAddress != null)
|
||||
{
|
||||
siloBuilder.ConfigureEndpoints(advertisedIPAddress, 11111, 30000);
|
||||
// Use localhost clustering when clustering is disabled
|
||||
siloBuilder.ConfigureEndpoints(IPAddress.Loopback, 11111, 30000);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Use basic endpoint configuration that works reliably in Docker
|
||||
siloBuilder.ConfigureEndpoints(siloPort: 11111, gatewayPort: 30000);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user