Jump to content
  • 0

S3 Integration in Cluster Setup


Dipesh Dulal
 Share

Question

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0

You need to follow that guide but you need to modify mongodb settings instead of red5-web.properties.

Could you check this thread please: https://groups.google.com/g/ant-media-server/c/VapAzcJccXA/m/dF7S8nmGCQAJ
My colleague Selim describes how to get it done.

Best Regards
Enes.

Link to comment
Share on other sites

  • 0

Hello Enes, 

Thanks for response. I found that there is clusterdb database and AppSettings  collection. But how do we add 

<bean id="app.storageClient" class="io.antmedia.storage.AmazonS3StorageClient"> 
 <property name="accessKey" value="Enter your S3_ACCESS_KEY" />
 <property name="secretKey" value="Enter your S3_SECRET_KEY" />
 <property name="region" value="Enter your REGION_NAME e.g. eu-central-1" />
 <property name="storageName" value="Enter your BUCKET_NAME" /> 
</bean>

 

Into the collection? I can't seem to understand the settings. 

Regards,
Dipesh

Link to comment
Share on other sites

  • 0

Thank you Enes.

That would be great. ‍♂️

Since we had one origin, two edge servers so, I went into each of the servers and changed the configuration manually as we would do with the single instance. 
But a proper way to change the settings would be great.  

Link to comment
Share on other sites

  • 0

Hi Dipesh,

Have a good day. I hope, you are well.

No need to add S3 configuration details manually. You can add User Data configurations after the load balancing system created with Cloudformation. These configurations add your S3 configurations to each new server at startup. 
You need to add below details in Launch Configurations / User Data section.

#For LiveApp

sed -i '/^<\/beans>.*/i <bean id="app.storageClient" class="io.antmedia.storage.AmazonS3StorageClient">\n<property name="accessKey" value="accesskey" />\n<property name="secretKey" value="secretkey" />\n<property name="region" value="eu-north-1" />\n<property name="storageName" value="bucketname" />\n</bean>' /usr/local/antmedia/webapps/LiveApp/WEB-INF/red5-web.xml

#For WebRTCAppEE

sed -i '/^<\/beans>.*/i <bean id="app.storageClient" class="io.antmedia.storage.AmazonS3StorageClient">\n<property name="accessKey" value="accesskey" />\n<property name="secretKey" value="secretkey" />\n<property name="region" value="eu-north-1" />\n<property name="storageName" value="bucketname" />\n</bean>' /usr/local/antmedia/webapps/WebRTCAppEE/WEB-INF/red5-web.xml

Please check below docs for more details:

I hope, I could help you.

Best Regards,
Selim

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...