Algorithms for HDC projections and distributed projections 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.
- SDKs: For programmatic access, see the specific algorithm management section for your preferred language SDK:
Showing Installed HDC Algorithms
You can view the algorithms installed on an HDC server with the show().hdc()
clause. For example:
show().hdc("hdc-server-1")
The returns include the _algoList_from_<hdcName>
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.