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