Deployment Options for H2O DAI MOJOs
Overview
The possibilities are endless with H2O MOJOs. H2O MOJOs are production-ready, scoring pipelines produced by H2O Driverless AI and H2O open-source. H2O MOJOs are perfect for production deployment with a small size and low latency for real-time and large-scale batch prediction use cases. H2O MOJOs can be deployed in real-time, batch, or streaming use cases on a diverse set of platforms and technologies including AWS Lambda, AWS SageMaker, Azure ML, Google Cloud, Hadoop, Kafka, Kubernetes, Snowflake, and more.
Anatomy of a MOJO
The MOJO (Model Objects, Optimized) scoring pipeline is a scoring engine that can be deployed in any Java environment for scoring in real-time or batch. MOJOs separate the scoring model from the runtime environment library to provide maximum performance and flexibility to deploy virtually anywhere. MOJOs are protobuf optimized to reduce the size of big data models and provide millisecond response times for high volume, low-latency applications.
![mojo-anatomy mojo-anatomy](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429/par/advancedcolumncontro/columns1/image.coreimg.jpeg/1649104149048/mojo-anatomy.jpeg)
![mojo-anatomy mojo-anatomy](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429/par/advancedcolumncontro/columns1/image.coreimg.jpeg/1649104149048/mojo-anatomy.jpeg)
![h2oai-production-model-deployment](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c/par/advancedcolumncontro/columns0/image.coreimg.png/1649104149094/h2oai-production-model-deployment.png)
![h2oai-production-model-deployment h2oai-production-model-deployment](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c/par/advancedcolumncontro/columns0/image.coreimg.png/1649104149094/h2oai-production-model-deployment.png)
Deploying MOJOs to Kubernetes using H2O MLOps
MOJOs can be deployed to Kubernetes as part of a REST server deployment. This is exactly what H2O MLOps does by putting the MOJO into a container and deploying the container to Kubernetes. H2O MLOps provides all the management and monitoring for models deployed in production on Kubernetes.
Deploying MOJOs with SnowFlake External Functions
With the external function integration between Snowflake and H2O Driverless AI, data ops and IT ops are more productive as they work on AI projects directly in Snowflake. Ops can use the SQL commands they know to retrain models, deploy updated models score records, and store the scores in Snowflake. The integration speeds IT workflows and reduces errors and cost to manage AI pipelines in production.
![H2O AI Model Training On Snowflake](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_908818384/par/advancedcolumncontro/columns1/image.coreimg.jpeg/1649104149182/h2oai-model-training-on-snowflake.jpeg)
![H2O AI Model Training On Snowflake H2O AI Model Training On Snowflake](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_908818384/par/advancedcolumncontro/columns1/image.coreimg.jpeg/1649104149182/h2oai-model-training-on-snowflake.jpeg)
![h2oai-mojos-on-rest-server](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_280945242/par/advancedcolumncontro/columns0/image.coreimg.png/1649104149228/h2oai-mojos-on-rest-server--.png)
![h2oai-mojos-on-rest-server h2oai-mojos-on-rest-server](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_280945242/par/advancedcolumncontro/columns0/image.coreimg.png/1649104149228/h2oai-mojos-on-rest-server--.png)
Deploying MOJOs with a Standalone REST Server on Kubernetes
H2O MOJOs can be deployed in a stand-alone rest server mode using Docker and Kubernetes. In this configuration, the dependency libraries are packaged with the MOJO files in the container and then replicated on Kubernetes. The load balancer manages requests across multiple pods hosting the same MOJO files.
Deploying MOJOs as a Database Scorer Scorer
This scorer enables most databases to use MOJOs to score records using any JDBC type 4 data source. The process reads specific rows from the database, scores using the MOJO, and then saves the predictions to a file or back to the database.
![h2oai-dai-mojorunner](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_179297530/par/advancedcolumncontro/columns1/image.coreimg.png/1649104149293/h2oai-dai-mojorunner.png)
![h2oai-dai-mojorunner h2oai-dai-mojorunner](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_179297530/par/advancedcolumncontro/columns1/image.coreimg.png/1649104149293/h2oai-dai-mojorunner.png)
![deploy-h2oai-mojos-lambda](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_871613569/par/advancedcolumncontro/columns0/image.coreimg.png/1649104149344/deploy-h2oai-mojos-lambda.png)
![deploy-h2oai-mojos-lambda deploy-h2oai-mojos-lambda](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_871613569/par/advancedcolumncontro/columns0/image.coreimg.png/1649104149344/deploy-h2oai-mojos-lambda.png)
Deploying MOJOs with AWS Lambda
H2O Driverless AI supports easy deployment for the MOJO to AWS Lambda. With just a few clicks, users can deploy MOJOs and run models with AWS lambda.
Deploying MOJOs with Hive UDF
User-defined functions (UDF) in Hive are a powerful way to leverage MOJOs in a Hive environment. A HQL call passes rows to the model to score.
![hive-hadoop-zookeeper](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_402936969/par/advancedcolumncontro/columns1/image.coreimg.png/1649104149403/hive-hadoop-zookeeper.png)
![hive-hadoop-zookeeper hive-hadoop-zookeeper](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_402936969/par/advancedcolumncontro/columns1/image.coreimg.png/1649104149403/hive-hadoop-zookeeper.png)
![deploy-mojos-kafka-activemq](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_517580311/par/advancedcolumncontro/columns0/image.coreimg.png/1649104149453/deploy-mojos-kafka-activemq.png)
![deploy-mojos-kafka-activemq deploy-mojos-kafka-activemq](/ko/platform/ai-cloud/make/h2o-driverless-ai/mojo-deployment-options/_jcr_content/root/container/section_1650178429_c_517580311/par/advancedcolumncontro/columns0/image.coreimg.png/1649104149453/deploy-mojos-kafka-activemq.png)
Deploying MOJOs with Kafka or Active MQ
Queues provide a scalable and resilient way to loosely couple complex systems, using MOJOs in these environments enables predictions to be added to existing data. H2O MOJOs can be used with systems like ActiveMQ, Kafka and more.