Connecting to a Milvus service in watsonx.data developer edition

You can establish connection and start the Milvus service in IBM® watsonx.data developer edition from a client program by following the steps in this procedure.

Note: Milvus is not supported in M1/M2 Mac OS, even if Rosetta emulation is enabled.

watsonx.data Developer edition

Before you begin

Install watsonx.data developer edition. For more information, see Installing the watsonx.data developer version.

Procedure

Complete the following steps to configure Milvus for using it with watsonx.data developer edition.
  1. Run the following command to do the one-time setup for Milvus.
    ibm-lh-dev/bin/setup-milvus
    Note: The command ibm-lh-dev/bin/setup-milvus is for the one-time setup.

    You need to run this command again only if you are upgrading watsonx.data developer edition and also want to upgrade the Milvus image.

  2. Start Milvus in watsonx.data.
    ibm-lh-dev/bin/start-milvus

    You can use Milvus service at localhost:19530.

Note: Upgrading watsonx.data development edition from 1.1.3 to 1.1.4 can potentially impact its interaction with existing Milvus collections, especially if Milvus was added and data was loaded in watsonx.data version 1.1.3. Follow the following steps prior to loading data in Milvus in 1.1.3 development version.
  1. Edit the ibm-lh-dev/etc/ibm-lh-etcd.conf file and add the following line:
    mnt_dir=/etcd
  2. Restart the Milvus and etcd services.

What to do next

Run the following command to shut down the Milvus service.
ibm-lh-dev/bin/stop-milvus