- Newest
- Most votes
- Most comments
It appears that the issue you're experiencing is related to changes in Apache NiFi 2.1.0, specifically its use of Jetty 10, which has stricter requirements for Server Name Indication (SNI) in HTTPS requests.
The Application Load Balancer (ALB) health checks are failing because they're using the IP address in the Host header, which Jetty 10 doesn't accept for HTTPS connections. This is causing the 400 Bad Request errors you're seeing.
To resolve this issue, you have a few potential options:
-
Configure your ALB to use HTTP health checks instead of HTTPS. This would bypass the SNI requirement.
-
If you need to keep HTTPS health checks, you can try configuring a custom health check path in your ALB that doesn't require HTTPS.
-
Another option is to configure your NiFi instance to accept requests with IP addresses in the Host header. This might involve adjusting Jetty's configuration, but be cautious as it could potentially reduce security.
-
You could also try setting up a separate HTTP endpoint specifically for health checks, running on a different port. Then configure your ALB to use this endpoint for health checks.
-
If possible, consider using TCP health checks instead of HTTP/HTTPS. This would check if the port is open and accepting connections without sending HTTP requests.
Remember to ensure that your security groups and network ACLs allow traffic between the ALB and your NiFi instances on the health check port.
If none of these solutions work, you might need to consider either staying on the older version of NiFi temporarily or reaching out to the NiFi community for more specific guidance on handling this with version 2.1.0.
Sources
Troubleshoot your Network Load Balancer - Elastic Load Balancing
Troubleshoot your Application Load Balancers - Elastic Load Balancing
answered 2 years ago
Relevant content
asked 3 years ago

Nifi accepts either HTTP or HTTPS but not both. Since we need to keep HTTPS, 1,2&4 above are out of equation. 3 is out as well due to the nature of our service which changes IP address from time to time. Before I try 5, could you advise if it's OK to add 400 to the healthcheck success codes of the target group as the work around?