Algorithms for HDC and distributed version are managed differently.
HDC Algorithms
HDC algorithms come as hot-pluggable plugins, allowing installation, updates, or removals without server disruption. Each package includes a .so file and a .yml configuration file, requiring independent installations on each HDC server.
Installation Methods
You can install HDC algorithms in different ways:
- Ultipa Manager: If using this GDBMS of Ultipa, install algorithms directly through the HDC module interface.
- Ultipa CLI: This cross-platform command line interface allows you to install algorithm with the install algo command.
- SDKs: For programmatic access, see the specific algorithm management section for your preferred language SDK:
Showing Installed HDC Algorithms
To view the algorithms installed on an HDC server like hdc-server-1
:
show().hdc("hdc-server-1")
The returns include the _algoList_from_<hdcServerName>
table, which lists all algorithms installed on the specified HDC server. It includes the following fields:
Field |
Description |
---|---|
name |
Name of the algorithm. |
type |
Type of the algorithm, which can be algo or specific system algorithms like pathfind and khop . System algorithms come pre-installed on the HDC server, enabling essential graph queries and other functions. |
write_support_type |
Supported writeback execution modes. |
can_rollback |
Indicates true for algorithms with updates that allow rollback. |
params |
Includes parameters , write_to_file_parameters and write_to_db_parameters . |
Distributed Algorithms
Distributed algorithms in Ultipa Powerhouse (v5) come pre-installed as part of the deployment package, so no additional installation is needed. These algorithms are readily available for use without further setup.