How can I change the application settings when Ant Media Server is in cluster mode? #5161
-
For example, to change the LiveApp settings when in standalone mode, it's possible to make changes to the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@timantmedia There are two ways to change application settings in cluster mode. Let me explain: 1. Change settings directly from MongoDB database In first method, you can change the settings through the MongoDB database directly. You can connect to the MongoDB server and make changes using software such as Robo3T etc. To check the string names of each setting, check https://antmedia.io/javadoc/io/antmedia/AppSettings.html Following that, there is an updateTime property in the same application document. The most recent time needs to be entered there. The unix time stamp is available at https://www.epochconverter.com/. 2. Change settings using Rest APIs In this way you need to call the Management Rest APIs to change the application settings. You can use this method in standalone mode as well.
In this example, I authenticated using user name and password.
Here is the curl sample:
In response you will get all the application properties, that you need to copy and use it in next call.
For example, to disable HLS option you need to change the below property and rest other properties will be same.
After that, you can verify the changes through the console. |
Beta Was this translation helpful? Give feedback.
-
Hi All, To do this
This works for both standalone as well as cluster mode. |
Beta Was this translation helpful? Give feedback.
@timantmedia
Thanks for asking this question.
There are two ways to change application settings in cluster mode. Let me explain:
1. Change settings directly from MongoDB database
In first method, you can change the settings through the MongoDB database directly. You can connect to the MongoDB server and make changes using software such as Robo3T etc.
After gaining access to the MongoDB server, navigate to Clusterdb--> App Settings--> There will be documents on your server corresponding to the number of applications, so open and check the application name ---right click and Edit Document --- Change/Add the required settings and save the document.
To check the string names of each sett…