– Data Hub Deployment Checklist –
When you first deploy Data Hub, there are several things you should do to make your deployment go smoothly and to set your installation up for a successful run.
Context
All Data Hub deployments should follow this checklist before go-live to ensure that each Data Hub node utilizes a production quality configuration.
Procedure
- REQUIRED: The – Pre-Installation Planning Guide – must be carefully reviewed - As stated in the doc, 'Any Data Hub deployment that has not strictly followed all of these guidelines may experience performance issues and is considered to be misconfigured.'.
- Logging Configuration: All Data Hub deployments must utilize the standard Data Hub Logging configuration file.. This is required for troubleshooting the Data Hub as it ensures that the proper information is being logged from the Data Hub product. Please note that the standard logging configuration file is included in Data Hub in the WEB-INF/classes directory and it can be edited in place.
- DO NOT enable Hibernate debug logging or Hibernate statistics logging! When enabled, Hibernate floods the logs with so much noise that it makes troubleshooting extremely difficult.
- Cleanup Extension: All Data Hub deployments must ensure they are ready by Activating Data Hub Database Cleanup extension. Pay special attention to the time delay properties and the exclusion list (this requires input from the customer – be sure to carefully read the doc). If data is allowed to accumulate in the database at all you do experience performance issues eventually. A properly configured cleanup extension prevents this from occurring.
- In-Memory Mode: Use of the Data Hub In-Memory mode Performance Configuration Parameters (see the section named 'In-Memory Mode Processing') can dramatically speed up processing. Just be aware that this mode does require more memory usage in the JVM.
- Standard Deployment Advice: The SAP Commerce Cloud should be deployed on a separate machine from Data Hub, but they should both be deployed on the same subnet.
- Database Configuration: If using a database that cannot isolate hardware resources to a given schema, then the Data Hub and the SAP Commerce Cloud must not be configured to use the same database instance. This is due to the database activity from the SAP Commerce Cloud affecting the Data Hub's performance and vice versa. Also, the database instances should be deployed nearby the SAP Commerce Cloud and the Data Hub (nearby in the network sense) and should have a very fast disk subsystem to ensure speedy I/O (the importance of this recommendation cannot be understated as it can dramatically affect performance).
- Oracle SE: Oracle SE does not offer functionality to isolate hardware resources to a particular schema (this functionality is provided by Oracle EE). Configuring the Data Hub and theSAP Commerce Cloud to utilize the same Oracle SE instance but different schemas can result in the database activity from one product affecting the performance of the other.
- SQL Server: Based on a high amount of data flowing through the database, we have observed that SQL Server can experience heavy index fragmentation causing simple queries to run for extreme amounts of time. The solution is to set up a job to rebuild the indexes more often. Depending on the environment, we have seen the need to rebuild indexes as often as every 30 minutes.
- Database Statistics: If your chosen database supports the generation of statistics, these statistics must be be updated more often to facilitate query plan optimization. Without frequent statistics update, a database can have difficulty choosing the right indexes for queries causing simple queries to run for extreme amounts of time. Depending on the environment, we have seen the need to generate new statistics as often as every 30 minutes.
- Memory Configuration: JVM memory usage is critical for the Data Hub and is discussed in the General Correlations Between Hardware Configuration and Job SizeGeneral Correlations Between Hardware Configuration and Job Size, be sure to see the memory usage discussion under the section named 'Hardware Guidelines'.
- A general rule of thumb for Data Hub memory configuration is the following: Assign the JVM 8GB of memory minimum to start and increase from there as needed. Be sure that the operating system has more memory than you are assigning to the JVM, so that it can properly handle paging in a performant manner. As data loads increase on the Data Hub, the amount of memory allocated to the JVM running the Data Hub does need to be increased, especially when using in-memory mode.