Comments (9)
/cc @Ladicek (smallrye), @jmartisk (smallrye), @phillip-kruger (smallrye), @radcortez (smallrye)
from quarkus.
@geoand @cescoffier Any idea how I could do this? 😬
from quarkus.
cc @ozangunalp
from quarkus.
No, except modifying the AMQP client options, I do not see another approach.
I would disable the health check and implement a custom one instead.
from quarkus.
No, except modifying the AMQP client options, I do not see another approach.
I would disable the health check and implement a custom one instead.
Hi @cescoffier
I tried modifying the clients options too. But I realized setTcpKeepAlive(true) had no effect on keeping the connection. Or is there another option I missed in the AMQP client options? So far this is what I did with the AMQP client Options:
@ApplicationScoped
public class AmqpConfigurationProvider {
@ConfigProperty(name = "amqp-port")
int port;
@ConfigProperty(name = "amqp-use-ssl")
boolean useSsl;
@Produces
@Identifier("custom-amqp-client-options")
public AmqpClientOptions getNamedOptions() {
return new AmqpClientOptions().setTcpKeepAlive(true).setPort(port).setSsl(useSsl);
}
}
I would use the health check deactivation as last solution. If you know another AMQP option I can try please let me know.
Thanks a lot
from quarkus.
Which broker are you using? Do they use an idle timeout? Could you potentially send fake frames regularly to keep it open?
from quarkus.
I think AMQP 1.0 broker in Azure (I don't remember the product name) had a similar behaviour.
from quarkus.
Probably, you are sending the TCP keep-alive but the server doesn't respect it and closes the connection anyway.
from quarkus.
Cloud-based broker tends to cut connections quickly if there are no L7 frames.
from quarkus.
Related Issues (20)
- how can I tell what database I'm connecting to? HOT 13
- `@OidcClientFilter` triggers several tokens in concurrency conditions 💣 HOT 5
- open classes/files listed in devui in IDE HOT 7
- Jakarta Data requires Hibernate Dialect settings When Upgrading to 3.11.0 HOT 2
- Provide default Grafana dashboards for the produced metrics HOT 8
- Support experimental Netty adaptive allocator HOT 3
- Implemented healthcheck in quarkus application using smallrye- /myapp/health-ui/ is not working on demo/Approval environment HOT 4
- Netty:LogCleanupFilterBuildItem does not remove a message HOT 3
- Jacoco Report not generated when maven-surefire-plugin is added to parent pom HOT 5
- Quarkus CLI can't find goal native-image-agent HOT 10
- Quarkus REST: Allow multiple `HttpAuthenticationMechanism` annotations HOT 5
- Swap docker.io databases for Quay ones for testing HOT 3
- UnsatisfiedResolutionException with basic extension using Gradle and Kotlin HOT 10
- Specifying parameters in sorting will throw an exception HOT 8
- ExceptionMapper not being called for WebApplicationException subclasses HOT 1
- OTEL resources attributes with interpolation doesn't get set HOT 5
- JMX inhibits quarkus fork join pool initialization HOT 9
- Qute: Remove empty lines HOT 3
- Params need double URL-safe-encoding for use with WebSocketConnector HOT 1
- Documentation on how to install a quarkus plugin using maven coordinates is wrong. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarkus.