Disable Spring-Cloud-Consul Health Indicator via properties - spring-cloud

Can you configure the property management.health.consul.enabled via a property source that is loaded after bootstrap.yml?.

See also this issue. With Spring Boot 2.3.7.RELEASE I can enable/disable the Consul health indicator via property management.health.consul.enabled without any issues.

Related

Quarkus Keycloak specific docker image

Is there a way to specify the Keycloak version which is used in dev/test mode in quarkus ?
The default one on the 2.15.0.Final version is 19.0.3 and I want to use the 20.0.2.
I search in multiple documentations but I didn't find anything.
Thanks !
You can specify which image to use for the keycloak dev service (that is what will be loaded in dev/test mode) using the quarkus.keycloak.devservices.image-name property.
Example :
quarkus.keycloak.devservices.image-name=quay.io/keycloak/keycloak:20.0.2
Note that if the image name does not end with -legacy, Quarkus will assume it is a Keycloak Quarkus image.
You'll find all configuration properties for the Keycloak Dev service here : https://quarkus.io/guides/dev-services#keycloak

How to monitor multiple JNDI datasources with FlexyPool?

I am starting to use FlexyPool to monitor an JNDI datasource managed by Tomcat.
I found how to monitor one datasource in this answer and in FlexyPool doc. I can not, however, figure how to configure the monitoring of multiple sources through the flexy-pool.properties file. Is this possible ?
Currently, the declarative configuration only supports a single DataSource. You can open an issue on GitHub for this. I would not mind if you send a Pull request for it.

How to dynamically configure security for Artemis MQ addresses

Trying to dynamically create and provide security metadata for artemis mq topics (as opposed to defining them statically in broker.xml).
For that purpose I've implemented (as described here) the SecuritySettingPlugin interface.
Now, the issue is the getSecurityRoles/populateSecurityRoles of the implementation are called only at server startup.
So, at some point in time after the mq server has been started, a topic will be created :
org.apache.activemq.artemis.api.jms.management.JMSServerControl.createTopic("newTopic")
Now I would like artemis to call again my SecuritySettingPlugin implementation to get the updated security roles (which will include configuration for the newly created newTopic).
Is that possible ?
P.S. security-invalidation-interval does not invalidate roles configuration cache.
Seems there is a way to customize an address security by API :
ActiveMQServerControl.addSecuritySettings()

Change FreePBX Queue settings programmatically?

Is there is anyway to change the settings(such as 'timeout') of a queue added by FreePBX?. I found No such options in Asterisk Manager (AMI) and CLI.
You can change in mysql in table queue_details. After that you should run /var/lib/asterisk/bin/retrive_conf to update config.

Does Feign retry require some sort of configuration?

I just tried to do a attempted a seamless upgrade of a service in a test setup. The service is being accessed by a Feign client. And naively I was under the impression that with multiple instances available of the service, the client would retry another instance if it failed to connect to one.
That, however, did not happen. But I cannot find any mention of how Feign in Spring Cloud is supposed to be configured to do this? Although I have seen mentions of it supporting it (as opposed to using RestTemplate where you would use something like Spring Retry?)
If you are using ribbon you can set properties similar to the following (substituting "localapp" for your serviceid):
localapp.ribbon.MaxAutoRetries=5
localapp.ribbon.MaxAutoRetriesNextServer=5
localapp.ribbon.OkToRetryOnAllOperations=true
ps underneath Feign has a Retryer interface, which was made to support things like Ribbon.
https://github.com/Netflix/feign/blob/master/core/src/main/java/feign/Retryer.java
see if property works - OkToRetryOnAllOperations: true
You can refer application ->
https://github.com/spencergibb/spring-cloud-sandbox/blob/master/spring-cloud-sandbox-sample-frontend/src/main/resources/application.yml
Spencer was quick...was late by few minutes :-)