S3 Integration in Cluster Setup

128 views
Skip to first unread message

Dipesh Dulal

unread,
May 27, 2021, 5:37:13 AM5/27/21
to Ant Media Server
We have tutorial for S3 integration using a single instance.
I am having hard time understanding setting up aws s3 in the cluster setup.Ā 
Do we require separate cloud formation template for this ?

Enes Kuluk

unread,
May 27, 2021, 12:55:28 PM5/27/21
to Ant Media Server
You need to follow that guide but you need to modify mongodb settings instead of red5-web.properties.
My colleague Selim describes how to get it done.

Best Regards
Enes.

Dipesh Dulal

unread,
May 30, 2021, 11:59:41 PM5/30/21
to Ant Media Server
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

Enes Kuluk

unread,
Jun 1, 2021, 2:43:08 PM6/1/21
to Ant Media Server
Let me get in contact with the Selim, I'll respond back to you after meeting.
Best Regards,
Enes.

Dipesh Dulal

unread,
Jun 1, 2021, 11:20:13 PM6/1/21
to Ant Media Server
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.Ā Ā 

Selim Emre

unread,
Jun 4, 2021, 4:50:17 PM6/4/21
to Ant Media Server
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

Dipesh Dulal

unread,
Jun 7, 2021, 7:33:53 AM6/7/21
to Ant Media Server
Thank You. šŸ™‡ā€ā™‚ļø

Regards,Ā 
Dipesh

Reply all
Reply to author
Forward
0 new messages