Remote Events migrated from Spring Bus to Spring Cloud Stream (#2563)
* Remote Events migrated from Spring Bus to Spring Cloud Stream --------- Co-authored-by: vasilchev <vasil.ilchev@bosch.com>
This commit is contained in:
@@ -21,36 +21,3 @@ run org.eclipse.hawkbit.doc.Start
|
||||
### Usage
|
||||
|
||||
The Management API can be accessed via http://localhost:8080/rest/v1
|
||||
|
||||
## Enable Clustering (experimental)
|
||||
|
||||
Clustering in hawkBit is based on _Spring Cloud Bus_. It is enabled by default in microservice apps and disabled (by default) in the
|
||||
monolith app. To enable it for monolith app you should set (via environment, system properties or properties files) the following:
|
||||
|
||||
Add to your `pom.xml` :
|
||||
|
||||
```properties
|
||||
spring.autoconfigure.exclude=
|
||||
spring.cloud.bus.enabled=true
|
||||
```
|
||||
|
||||
Optional as well is the addition of [Protostuff](https://github.com/protostuff/protostuff) based message payload
|
||||
serialization for improved performance. To enable it set (via environment, system properties or properties files):
|
||||
|
||||
```properties
|
||||
spring.cloud.stream.bindings.springCloudBusInput.content-type=application/binary+protostuff
|
||||
spring.cloud.stream.bindings.springCloudBusOutput.content-type=application/binary+protostuff
|
||||
```
|
||||
|
||||
and add to your `pom.xml` :
|
||||
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>io.protostuff</groupId>
|
||||
<artifactId>protostuff-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.protostuff</groupId>
|
||||
<artifactId>protostuff-runtime</artifactId>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
@@ -13,7 +13,6 @@ spring.application.name=update-server
|
||||
spring.main.allow-bean-definition-overriding=true
|
||||
|
||||
# Logging configuration
|
||||
logging.level.org.eclipse.hawkbit.eventbus.DeadEventListener=WARN
|
||||
logging.level.org.springframework.boot.actuate.audit.listener.AuditListener=WARN
|
||||
logging.level.org.hibernate.validator.internal.util.Version=WARN
|
||||
# security Log with hints on potential attacks
|
||||
@@ -47,9 +46,12 @@ hawkbit.server.repository.publish-target-poll-event=false
|
||||
|
||||
## Disable RabbitMQ auto configuration. Comment it to enable RabbitMQ support.
|
||||
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
|
||||
## Configuration Spring Bus (disabled by default) - no cluster support. To enable it, enable RabbitMQ (see above)
|
||||
## and comment the line (spring.cloud.bus.enabled=false) or set spring.cloud.bus.enabled=true
|
||||
spring.cloud.bus.enabled=false
|
||||
|
||||
## Uncomment bellow to Enable communication between services (disabled by default) - no cluster support.
|
||||
# To enable it, enable RabbitMQ (see above)
|
||||
# and set below 'org.eclipse.hawkbit.events.remote-enabled=true'
|
||||
org.eclipse.hawkbit.events.remote-enabled=false
|
||||
|
||||
## Disable DMF (by default) - no DMF support. To enable it, enable RabbitMQ (see above) and comment the line
|
||||
## (hawkbit.dmf.rabbitmq.enabled=false) set hawkbit.dmf.rabbitmq.enabled=true
|
||||
hawkbit.dmf.enabled=false
|
||||
|
||||
Reference in New Issue
Block a user