Elastic, Is there a way to see live configuration after changing setting? - elasticsearch

I change some settings to elastic-apm.
https://www.elastic.co/guide/en/apm/server/current/configuration-process.html
I want to verify if the setting is actually changed. but not sure how to check ..
Is there an endpoint where I can view the current configuration?

The only way to get configuration is to check apm-server.yml in your instance, but if you want to check your agent configuration you can use Agent Configuration API, for more information check https://www.elastic.co/guide/en/apm/server/current/agent-configuration-api.html.

Related

IntelliJ disable usage statistics / data sharing via configuration file

The Option to disable data sharing can be changed at any time by the user:
I want to disable this setting by default for a managed installation of IntelliJ IDEA, ideally via configuration file or registry setting.
How can I do this? I could not find any registry setting or configuration setting so far.
This option is already disabled by default.
The state of the option is stored in the /consentOptions/accepted file under the data directory which is platform specific.
On Windows that would be C:\Users\<user>\AppData\Roaming\JetBrains\consentOptions\accepted.
When the option is enabled, the file will contain something like this:
thrd.plugins:1.0:0:1525589497351;rsch.send.usage.stat:1.1:1:1551998109388
and the following with the option disabled:
thrd.plugins:1.0:0:1525589497351;rsch.send.usage.stat:1.1:0:1551998064076
The format is as follows:
rsch.send.usage.stat:<version>:<enabled>:<timestamp>
You can learn more from the ConsentOptions.java source code.

Elasticsearch monitoring settings

In the monitoring tab of Kibana it is mentioned that Monitoring is currently off
We need to enable xpack.monitoring.collection.enabled setting somewhere.
Where do we need to edit this setting?
I know we can click on this button and enable it automatically but I want to know in which file does it enable this setting.
I have checked kibana.yml, elasticsearch.yml and advanced settings in kibana and i could not find anything related to this.
Here is the Link to the documentation: https://www.elastic.co/guide/en/kibana/current/monitoring-settings-kb.html
xpack.monitoring.collection.enabled is set in your kibana.yml
But there is a ton of other settings. The config file depends on the specific setting.

Disabling/Pause database replication using ML-Gradle

I want to disable the Database Replication from the replica cluster in MarkLogic 8 using ML-Gradle. After updating the configurations, I also want to re-enable it.
There are tasks for enabling and disabling flexrep in ML Gradle. But I couldn't found any such thing for Database Replication. How can this be done?
ml-gradle uses the Management API to handle configuration changes. Database Replication is controlled by sending a PUT command to /manage/v2/databases/[id-or-name]/properties. Update your ml-config/databases/content-database.json file (example that does not include that property) to include database-replication, including replication-enabled: true.
To see what that object should look like, you can send a GET request to the properties endpoint.
You can create your own command to set replication-enabled - see https://github.com/rjrudin/ml-gradle/wiki/Writing-your-own-management-task
I'll also add a ticket for making official commands - e.g. mlEnableReplication and mlDisableReplication, with those defaulting to the content database, and allowing for any database to be specified.

Use IBM IIB mqsichangeproperties to change SOAPRequest WebService URL

Can I use IBM IIB mqsichangeproperties to change SOAPRequest WebService URL. This will help in avoiding a redeployment when the URLs change slightly without any change to the XSDs. Also helps when migrating from test to production
I think not, normally the command can affect SOAPInput SOAPReply nodes and to modify in SOAPRequest I would use mqsiapplybaroverride, verifying exactly as it is called in the URL bar with mqsireadbar. The downside is you have to redeploy.
mqsichangeproperties would help you change the hostname of IntegrationNode. The hostname will change for different environments from test to PROD as you will have different Integration Nodes for each of em.What you will change is the suffix like in the URI
http://hostname:7080/ProductDetails_v3
Which you could do by overriding it using a properties file with mqsiapplybaroverride or you can fetch the suffix from a DB store it in some variable & provide it in LocalEnvironment before making the request.
Please refer the link for LocalEnvironment Overrides for SOAPRequest Nodes
https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac56192_.htm

How to change Infinispan cache settings after it is created?

In my application i'm using Infinispan 5.3 version and I want to change setting after cache is initialized. Default settings will be loaded from xml file and some of the settings ( ex : eviction maxEntries, lifespan, etc ) should be able to change any time of application running (This is changed by sysadmin). Is there way to changed settings of already created cache ?
I tried EmbeddedCacheManager.defineConfiguration(String cacheName, Configuration configurationOverride); but this has no effect on already created cache.
Please, take into account that in the Infinispan version 5.3 there is no possibility to change cache configuration "on the fly". You need to restart your service with new configuration in case of any wanted change.
This is something the community might want to work on in the future. However, such a task is not easy because you need to figure out how to correctly deal with affected data immediately after the configuration change.
Feel free to raise new feature request: https://issues.jboss.org/browse/ISPN/

Resources