Launching Flashphoner server in AWS Auto Scaling Group

jasonkc

Member
I would like to find out whats the best way to create auto scaling group in AWS to host Flashphoner instances behind a load balancer, questions like:

a) how to configure load balancer? Determine in flow request by port 8443?
b) How to apply license on scaled instances?
 

Max

Administrator
Staff member
Good day.
a) how to configure load balancer? Determine in flow request by port 8443?
Please read this article with step by step guide. Also read the details in this doc.
b) How to apply license on scaled instances?
You can apply the same license key to all the instances. If you're using AWS Marketplace AMI, it will be billed by Amazon itself for their own price. If you're using custom base image with your own license key, it will be billed according to running instances count as described here.
 

Max

Administrator
Staff member
Currently I hv a license that its renewly on monthly basis, can I apply that to all scalable instances?
Yes, you can apply your current license. But in this case you should use custom image, not Marketplace AMI.
 

jasonkc

Member
As I currently pointing to my single Flashphoner instance as the webrtc server in the exisitng JS file:

var URL = "wss://52.221.208.40:8443"

I just need to replace it with LB hostname right?

Also to use port 8443 in the LB protocol setting?
 

jasonkc

Member
I hv configured LB in AWS to forward http/https (port 80, 8443 and 8888) to webcallserver sitting in a auto scaling group, but how about RTMP traffic? How would it figure which server (if more than 1 in auto scaling group) to forward the RTMP traffic to?
 

Max

Administrator
Staff member
I hv configured LB in AWS to forward http/https (port 80, 8443 and 8888) to webcallserver sitting in a auto scaling group, but how about RTMP traffic? How would it figure which server (if more than 1 in auto scaling group) to forward the RTMP traffic to?
You can add 1935/TCP port forwarding to load balancer too.
But, if you want to know on which server the stream is published, you have to set up a separate backend server and use REST hook /publishStream to detect this. Then, you should pass to playing client the server address to connect.
 
Top