Deploy your project
Deploy the database to Amazon RDS
After you have created your Sitefinity CMS project, you must move your database to the Amazon cloud. For more information about importing your database in Amazon RDS, see Importing and Exporting SQL Server Data.
Create Amazon EC2 instances that will run Sitefinity
Sitefinity CMS runs on EC2 instances that have Windows Server, IIS, and .NET installed. You must deploy the web application and attach it to the appropriate application pool. You must also configure the user permissions.
Because the instances have standard Windows Server installation, for more information about configurations, see System requirements and Run projects on IIS.
After you make the configuration on one instance, you can copy or share the site's folder to the rest of the instances.
Configure Amazon ElastiCache (Redis)
When you upload your site on more than one EC2 instances or you want to scale the instances, you must prepare the communication infrastructure to transmit messages between the nodes. For example, to communicate cache invalidation. Sitefinity CMS uses Redis message sender that you must configure for NLB communication in Amazon.
Perform the following:
- Copy the connection string from ElastiCache.
When you create the ElastiCache Cluster, use its node endpoint address and port.
For example, myredisCluster-001.jejod.0001.euc1.cache.amazonaws.com:6379
- In Sitefinity CMS backend, navigate to Administration » Settings » Advanced » System » LoadBalancing » Redis Settings » Connection String.
EXAMPLE: myredisCluster-001.jejod.0001.euc1.cache.amazonaws.com:6379
- To be able to use Redis from different client applications, enter the copied connection string and specify a prefix for all messages from this site.
- Save your changes.
NOTE: If the ElastiCache server (Redis) is not available or not configured properly, you may experience delays in Sitefinity CMS.
Create and configure the load balancer
If you want a high availability solution or you want to spread the load of the site between different server instances, you must use a load balancer to distribute the requests.
In order to create a load balancer, perform the following:
- Go to Amazon Services and select EC2.
- Select Load Balancing » Load balancers and create a new one following the wizard.
- Select the appropriate security group where the EC2 instances are placed.
- Configure the health check to a page in your site.
For example, /
for the root of the site.
- Select the EC2 Instances that you want to balance.
- Set Tags and create the load balancer.