camel-quarkus icon indicating copy to clipboard operation
camel-quarkus copied to clipboard

Automatic configuration of Camel cluster services

Open jamesnetherton opened this issue 3 years ago • 2 comments

We should be able to do something similar to what Camel Spring Boot does to capture configuration for Camel cluster services and then use it to create the appropriate CamelClusterService.

See example for the FileLockClusterService:

https://github.com/apache/camel-spring-boot/tree/main/components-starter/camel-file-starter/src/main/java/org/apache/camel/component/file/springboot/cluster

We should aim to have auto configuration of each of the available CamelClusterService implementations that CQ supports. File, Kubernetes etc.

jamesnetherton avatar Jul 18 '22 08:07 jamesnetherton

For what concerns the cluster service based on Kubernetes, the camel-k master auto configuration customizer:

  • offers an opinionated way of configuring the master component so only a subset of the options are exposed whereas the spring boot one exposes all the options. Given that we are gogin to leverage the kubernetes client from Quarkus I guess we can be opinionated here too.
  • offers additional capabilities like enabling rebalancing

lburgazzoli avatar Aug 18 '22 10:08 lburgazzoli

In Camel Quarkus, we might implement KubernetesClusterService and FileLockClusterService. Other cluster services would not be in scope for the moment. KubernetesClusterService has been done in ticket ~4086 FileLockClusterService could be treated in another ticket.

aldettinger avatar Sep 29 '22 13:09 aldettinger