2.2. Data Shard Services

A new shard must be created before the data aggregation services are enabled. In addition, two additional data shard instances must also be created to ensure a three node replica set. The following provides instructions to create a new data shard.

2.2.1. Deploying a New Shard

To create a new Data Shard, the following steps must be performed:

  1. Enter the following commands:

user@host:# yum install hawk-shard

user@host:# cd /usr/local/hawk/data/hawk-shard && ./hawk-shard-config

  1. Select option 2 for Manage Data Services.

Fig25

  1. Select option 1 for Manage Data Services.

Fig26

  1. Select option 3 for Data.

Fig27

  1. Select option 1 New Shard.

Fig28

  1. Next enter the replica tag name for the new shard to enable easier identification of the shard. This could be the Customer name, location name, leveraged name, or any name that makes it easy to identify the shard.

Fig29

  1. Enter the bind IP address for the replica.

Fig30

  1. Enter the bind port for the replica.

Fig31

  1. Enter the location where the replica data is to be stored. This is important for data store performance to ensure greater speed of the application.

Fig32

  1. Enter the replica’s primary IP external address.

Fig33

11. Once the primary replica finishes the initialization process, a dialog box opens to indicate that the installation is complete.

Fig34

2.2.2. Deploying an Existing Shard

As additional Shards are created, they must be deployed. The following steps provide instructions for deploying existing Shards.

  1. Enter the following commands:

user@host:# yum install hawk-shard

user@host:# cd /usr/local/hawk/data/hawk-shard && ./hawk-shard-config

  1. Select option 2 for Manage Data Services.

Fig35

  1. Select option 1 for Manage Data Services.

Fig36

  1. Select option 3 for Data.

Fig37

  1. Select option 2 Existing Shard.

Fig38

  1. Enter the Shard’s tag name.

Fig39

  1. Enter the peer IP host address for the replica.

Fig40

  1. Enter the peer host port for the replica.

Fig41

  1. Enter the bind IP address for the replica.

Fig42

  1. Enter the bind port for the replica.

Fig43

  1. Enter the location where the replica data is to be stored.

Fig44

  1. Enter the primary external IP address for the replica.

Fig45

  1. While the primary replica works through the initialization process, this dialog box opens:

Fig46

  1. When the initialization process is completed for the replica, this notification dialog box opens.

Fig47