We are currently using Smartfox2x server on aws ec2 , but thinking to dockerize it and deploy it to eks or ecs on amazon , there are two three questions that pinching my mind
1. How can we can we apply lisence to those dockers is there any way to apply through command line ?
2. Is it a good option to use smartfox in docker form , if no/yes why ??
Dockerizing and Lisencing
Re: Dockerizing and Lisencing
Hi,
licenses need to be unique for each instance, and there isn't a specific way to deploy a license via command line.
The license code is a simple string stored in SFS' XML config. The target file is config/server.xml, the tag is called <licenseCode>
If you have a pool of licenses that you wish to apply dynamically to a number of virtual servers, my suggestion would be to store them on a central DB and then have a small pre-setup script that borrows one license from the pool and assigns it to the server (by modifying the xml config, before starting up the server).
Docker is "just" another virtualization tool and as such it doesn't interfere with SFS2X. It's neither bad nor good, it's just another way to deploy software. If it solves problems for you then I'd say it's a good solution
Cheers
licenses need to be unique for each instance, and there isn't a specific way to deploy a license via command line.
The license code is a simple string stored in SFS' XML config. The target file is config/server.xml, the tag is called <licenseCode>
If you have a pool of licenses that you wish to apply dynamically to a number of virtual servers, my suggestion would be to store them on a central DB and then have a small pre-setup script that borrows one license from the pool and assigns it to the server (by modifying the xml config, before starting up the server).
Is it a good option to use smartfox in docker form , if no/yes why ?
Docker is "just" another virtualization tool and as such it doesn't interfere with SFS2X. It's neither bad nor good, it's just another way to deploy software. If it solves problems for you then I'd say it's a good solution
Cheers
-
- Posts: 4
- Joined: 21 Feb 2023, 13:07
Re: Dockerizing and Lisencing
What if we need to upgrade our licenses do we need to restart the docker env or SFS server ?
-
- Posts: 4
- Joined: 21 Feb 2023, 13:07
Re: Dockerizing and Lisencing
Hi Lapo,
I have the same scenario and trying to find the best solution to do this, Before this, I have a one questions regarding the licenses if I have assigned the licenses in the XML file as you suggested.
1. What if I want to upgrade the licenses CCU at run time will it be possible? I want to avoid restart of my instance.
I have the same scenario and trying to find the best solution to do this, Before this, I have a one questions regarding the licenses if I have assigned the licenses in the XML file as you suggested.
1. What if I want to upgrade the licenses CCU at run time will it be possible? I want to avoid restart of my instance.
Re: Dockerizing and Lisencing
@Moonshine-ashish
Yes, especially with Elastic Licenses you can upgrade them (e.g. set the CCU higher or lower) and reload them at runtime without the need to restart anything. It also work with standard licenses as well.
See here:
http://docs2x.smartfoxserver.com/Gettin ... nseManager
Last section of the doc
Cheers
Yes, especially with Elastic Licenses you can upgrade them (e.g. set the CCU higher or lower) and reload them at runtime without the need to restart anything. It also work with standard licenses as well.
See here:
http://docs2x.smartfoxserver.com/Gettin ... nseManager
Last section of the doc
Cheers
-
- Posts: 4
- Joined: 21 Feb 2023, 13:07
Re: Dockerizing and Lisencing
thanks A lot
Who is online
Users browsing this forum: No registered users and 134 guests