Skip to main content

Distributed-Domain

Prerequisite

  • Downloafd the trisul from official website .

  • Install hub in Trisul-hub server.

  • Check if expect script is present , If not install the package.

    sudo apt install expect
  • Install probe in Trisul-probe server , for multiple probe install probe on each server.

  • Configure ssh on all Trisul-server

First , you need to change the Hub-server to distributed domain . Follow the below steps :

Trisul-Hub server

  • Run the script - /usr/local/share/trisul-hub/hub_distributer.exp

  • It ask the following inputs Hub-Server IP , Description , starting port .

    ParanetersSample Inputs
    Hub IP Address192.168.1.6
    Domain DescriptionDistributed domain
    Starting Port12001
  • Installation starts and the server will now become distributed domain.

Next , you need to add trisul-probe to the trisul-hub . Follow this step to connect probe to hub

Trisul-probe server

  • Run the script - /usr/local/share/trisul-hub/add_probe.exp

  • It ask for following inputs Probe-Name , Probe-ssh-IP addr , Probe-ssh-username , Probe-ssh-Password.

    note

    Probe name should start with probe string followed by name
    Ex : probeWEST

    ParametersSample Inputs
    Probe-NameprobeWEST
    Probe-ssh-IP addr192.168.1.7
    Probe-ssh-usernamedemo-user
    Probe-ssh-Passworddemo-passwd
  • The script will connect the Trisul-probe to the Trisul-hub , If you have multiple Trisul-probe , after the installation of trisul-probe over , run the same script again and provide the next Trisul-probe details.

Check the probe is connected

  • To check the probe is connected you can run this command :

    /usr/local/bin/trisulctl_hub hello

    You can see the list of probe connected here.

  • If you can't see the probe restart the hub and probe.

  • Run this below script on Trisul-hub server

    /usr/local/bin/trisulctl_hub restart domain
  • Run this below script on Trisul-probe server

    /usr/local/bin/trisulctl_probe restart domain
  • Again run the first command it shows the connected probe . If the probe is not shown then the installation is not done correctly.

How it works

  • In hub and probe server , the inputs is checked before the installation.

  • Then , it checks the license is valid , if you have an 3-day timetrial then the installation will stopped. Contact the trisul support for license.

  • In hub server , the domain and context will be stopped

  • Removes the default domain0 by removing the domain cert files.

  • Creates a new domain with the TCP socket by executing below commands

/usr/local/bin/trisulctl_hub create domain
  • After the domain is created , then it install the domain cert in hub by running following commands
trisulctl_hub install domain /usr/local/share/trisul-hub/domain0.cert 

And it change the endpoints by executing below command

 /usr/local/share/trisul-hub/change_endpoints 
  • The Trisul-probe server commands is executed through SSH in Trisul-hub server itself

  • In probe server it removes the default probe0 if it exists and creates a new probe with given probe name

  • The probe cert is installed in Trisul-probe itself and another copy routed to Trisul-probe and installed in Trisul-hub also.

  • At last both Trisul-hub and Trisul probe is restarted