Here we are going to discuss about - how do we setup and integrate Aurora Store with a CDN (Content delivery network, is a large distributed system of servers deployed in multiple data centers across the internet. The goal of a CDN is to serve content to end-users with high availability and high performance.)service?
Akamai,( very popular CDN provider on the marketing)
1 – Override the implementation in CMDREG table, to FileSystemCopy.
Akamai,( very popular CDN provider on the marketing)
1 – Override the implementation in CMDREG table, to FileSystemCopy.
- FileSystemCopy
update cmdreg set className='com.ibm.commerce.wc.appmanagement.commands.UpdateStaticEARContentUsingFileSystemCmdImpl' where interfaceName='com.ibm.commerce.wc.appmanagement.commands.UpdateStaticEARContentCmd';
2 – FileSystem.xml – We have to edit this file, located in the “WC/xml/config” directory. In this file we have to pint where the assets will be copied.
- proceedOnlyWhenAllServersAreWorkingSet – Set this value to false. This attribute is only applicable to the root element of FTP servers.
- FSLocation – A local directory on the WebSphere Commerce system which is mapped or mounted to a remote directory on the Web server system.
<FSLocations xmlns="http://www.ibm.com/xmlns/prod/WebSphereCommerce" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ibm.com/xmlns/prod/WebSphereCommerce xsd/FileSystem.xsd" proceedOnlyWhenAllServersAreWorking="false"> <FSLocation dir="/temp/filehold"/> </FSLocations>
3 – Schedule ScheduledContentManagedFileEarUpdate (Commerce Scheduled Job) to run every 15 minutes only on dedicated staging appserver.
4 – Schedule Shell scripts jobs to copy the files and folders created by the business user, from this folder in the app server to our webserver. This script can use rsync or other technology. You may also allow the app to save the asset directly on the web server, mounting a folder with NFS, but I don’t like this solution.
No comments:
Post a Comment