Using Multiple Service Models
If you have two or more service models that you want to process in the same cluster simultaneously:
- Create separate KPI profiles for each kpi model. See KPI Profile.
- Create separate input, output, and alarm topics in Kafka for each service model. See Starting Clusters and Creating Topics.
Create separate Spark application configurations for each service model. This can be done by updating the script kpi_params.sh in the folder mz_kpiapp/bin, making one entry per kpi model.
Copy the whole section in the if-statement for "kpiapp", and alter these parameters:
if [ "kpiapp" = "$1" ]Â
The name of the profile used
export MZ_KPI_PROFILE_NAME="kpisales.SalesModel"Â