Comments (4)
The service is stateless by design, because that makes it simpler (less moving parts), easier to use (less configuration), and applicable to a wider range of use cases (all RAM/no writeable storage runtime environments).
Why would you restart a running service anyway (other than for version upgrades)? Are you experiencing some sort of stability/resource usage issues (eg. memory leak) with it?
After restart, you are expected to populate the service with models just like you did it the first time. There should be a local filesystem directory with model PMML files somewhere, and you would simply HTTP PUT
them one by one using a three-line script. For example, you could use the openscoring-python client library to abstract away REST API details.
If the restart is a scheduled event, then you might capture all models to a temporary "snapshot" directory. First, retrieve the list of models by doing HTTP GET
against the model summaries endpoint /model
and harvest the response object for model identifiers. Then, download models one by one in PMML data format by doing HTTP GET
against the model download endpoint /model/${id}/pmml
.
from openscoring.
The standalone server application (module openscoring-server
) provides a --model-dir
command-line configuration option, which starts a directory watchdog thread that automatically deploys and undeploys PMML files in relation to file creation and deletion events.
However, if you activate such "auto-deployment" functionality, then you shouldn't modify the state of the running service by doing "manual" HTTP PUT
and DELETE
operations, as these subsystems are not coordinated with one another.
from openscoring.
Linking this issue with related issues #9 and #10
from openscoring.
Thanks for your comments it's clear :-)
from openscoring.
Related Issues (20)
- Excess use of memory by pmml.gz files HOT 1
- Openscoring war deployment on Tomcat- admin role authorization HOT 2
- get the predictions results HOT 1
- [Question] Default folder for loading models? HOT 1
- tensorflow serving support HOT 2
- Client side throw an exception that java.lang.IllegalStateException: InjectionManagerFactory not found. HOT 2
- .pmml not reconize on upload
- Is there a configuration for enabling/disabling REST endpoints HOT 1
- Error: SEVERE: Failed to evaluate java.lang.NumberFormatException: For input string: "X" HOT 2
- feature request: add deploy method - pip/docker HOT 2
- How to enable CORS for the Server HOT 1
- the lastest jar version 2.0 "xgbValue" is not defined HOT 1
- Missing field when trying to score lightgbm model HOT 9
- IllegalArgumentException: Attribute 'GradientBoostingClassifier.loss_' has an unsupported value (Python class BinomialDeviance) HOT 1
- Service should log information about exceptional conditions before raising an exception HOT 6
- "message" : "Attribute with value RegressionTable@targetCategory=1 is not valid" HOT 4
- How to define the model.version? HOT 1
- openscoring-docker -- PMML 4.4 not supported HOT 1
- Missing derived field declaration HOT 2
- Secured requests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openscoring.