Sitemap

ML microservice with Nameko to implement a predictive maintenance application

3 min readSep 10, 2020

In this article the development and deployment of a microservice is going to be explained. This microservice consists of:

web service that receives data for prediction

ml service that predict the life cycle with trained model

Hbase database service

ELK dashboard service

Traefik load balance

This microservice has been built with Nameko and deployed with docker-compose.

Press enter or click to view image in full size

ML Development

This section of the project has been done in kaggle and based nasa data turbofan dataset. This state of art work could be found here!

The model has been developed based on random forest algorithm, the target is to predict the remained useful life based on current state and is export into joblib-file to be used in ml-service!

ML Deployment

This part of project is a nameko service that get the prediction from model based on input data!

Press enter or click to view image in full size
Implementation of model
Nameko service

Restful API

This service is built with fastapi and will ask ml-service to calculate the remained cycle of turbofan.

Press enter or click to view image in full size

Hbase service

This service is will store data into hbase, the docker file has been developed here!

First this table at start will be created!

Press enter or click to view image in full size

Then in nameko service the saving and querying data would be like this:

Press enter or click to view image in full size
Press enter or click to view image in full size

And finally in will represented like this in nameko:

Dashboard service

This service is going to push the data into kafka topic, the logstash will read the data from kafka topic and save it into elasticsearch the it will be represented in kibana!

--

--

No responses yet