At times, we get a requirement to configure multiple dispatchers or additional ports for (MSCA) MWA in EBS. We can follow below steps to do the same.
Identify the file mwa.cfg located under $INST_TOP/admin/install.
Update the following fields in mwa.cfg file.
#Update the following parameter with the MWA ports you want to use for telnet. Example below:
mwa.TelnetPortNumber=10220,10222,10224,10226,10228,10230,10232,10234,10236,10238,10240,10242,10244,10246,10248,10250,10252,10254,10256,10258
# Specify the port number and machine for running the dispatcher
# For eg. mwa.Dispatcher = ap100sun:2300
mwa.Dispatcher=locahost:10753,localhost:10763
We need to enter the dispatcher ports we want to use in the mwa.Dispatcher parameter in mwa.cfg file as mentioned in above example.
Now, once this is done, go to $ADMIN_SCRIPTS_HOME and modify the mwactl.sh file as below:
FROM:
${MWA_TOP}/bin/MWADIS
TO:
${MWA_TOP}/bin/MWADIS -p "$2"
Note: If we do not update mwactl.sh with above change, dispatcher will start on only one port.
To retain these changes and to avoid being overwritten during autoconfig, perform the below.
Go to $MWA_TOP/admin/template
create a folder called custom
copy the files mwa.cfg and mwactl.sh to custom folder.
Edit them as mentioned in above steps. This will make sure the autoconfig would still retain the changes we have done.