Command line interface (CLI)
A brief overview of konduit-serving command line interface.
konduit --helpUsage: konduit [COMMAND] [OPTIONS] [arg...]
Commands:
config A helper command for creating JSON for inference configuration
inspect Inspect the details of a particular konduit server.
list Lists the running konduit servers.
logs View the logs of a particular konduit server
predict Run inference on konduit servers using given inputs
serve Start a konduit server application
stop Stop a running konduit server
version Displays konduit-serving version.
Run 'konduit COMMAND --help' for more information on a command.konduit serve --helpUsage: konduit serve [-b] [-cp <classpath>] -c <server-config> [-i <instances>]
[-jo <value>] [-s <type>] [-id <value>]
Start a konduit server application
Start a konduit server application. The application is identified with an id
that can be set using the `--serving-id` or `-id` option. The application can be
stopped with the `stop` command. This command takes the `run` command
parameters. To see the run command parameters, execute `run --help`
Example usages:
--------------
- Starts a server in the foreground with an id of 'inf_server' using
'config.json' as configuration file:
$ konduit serve -id inf_server -c config.json
- Starts a server in the background with an id of 'inf_server' using
'config.json' as configuration file:
$ konduit serve -id inf_server -c config.json -b
--------------
Options and Arguments:
-b,--background Runs the process in the background, if set.
-cp,--classpath <classpath> Provides an extra classpath to be used for the
verticle deployment.
-c,--config <server-config> Specifies configuration that should be provided
to the verticle. <config> should reference either
a text file containing a valid JSON object which
represents the configuration OR be a JSON string.
-i,--instances <instances> Specifies how many instances of the server will
be deployed. Defaults to 1.
-jo,--java-opts <value> Java Virtual Machine options to pass to the
spawned process such as "-Xmx1G -Xms256m
-XX:MaxPermSize=256m". If not set the `JAVA_OPTS`
environment variable is used.
-s,--service <type> Service type that needs to be deployed. Defaults
to "inference"
-id,--serving-id <value> Id of the serving process. This will be visible
in the 'list' command. This id can be used to
call 'predict' and 'stop' commands on the running
servers. If not given then an 8 character UUID is
created automatically.Example Workflow
1. Create a configuration
2. Start a server
3. List the running servers
4. View the logs
5. Running predictions
6. Stop a server
What's next?
Last updated
Was this helpful?