Note: If you have changed the configuration or changed the operating status of any component involved in this document while LiCO is running, the following command must be executed to restart LiCO:
xxxxxxxxxxsystemctl restart licoThe following part of the infrastructure configuration in the /etc/lico/lico.ini should be modified:
xxxxxxxxxx[LICO]DOMAIN = 'hpc.com'To adhere to the shared directory configurations in this document, the following part of the storage configuration in the /etc/lico/lico.ini should be modified:
xxxxxxxxxx[LICO]SHARE_DIR = "/home"The following part of the scheduler configuration in the /etc/lico/lico.ini should be modified:
xxxxxxxxxx[LICO]# The scheduler configuration currently supports Slurm and LSF.Slurm is the default.SCHEDULER = 'slurm'To make new users accessible to one or more custom shared directory, do the following: Step 1. Create one or more shared folder, change the permission
xxxxxxxxxx# change <Shared_Folder> to the absolute path of the Shared directory, If you want to use the existing directories, remember to change the permission.mkdir -p <Shared_Folder>chmod -R 777 <Shared_Folder>Step 2. Modify the share directories configuration in the /etc/lico/lico.ini:
xxxxxxxxxx[LICO]#for example: USER_SHARE_DIR = ["<Shared_Folder>","<Shared_Folder1>"]USER_SHARE_DIR = []Note: You need to run the following command for the changes to take effect
xxxxxxxxxxlico share_dirs_initThe following part of the login configuration in the /etc/lico/lico.ini.d/user.ini should be modified:
xxxxxxxxxx[USER.LOGIN]#Maximum number of login password error attemptsMAX_CHANCE = 5#If user login failures exceed MAX_CHANCE,the system will suspend this user for 1 hourLOCKED_HOURS = 1Attention: The configuration in this section is needed only when lico-wechat-agent module is installed for the cluster. You can obtain
The following part of the wechat-agent configuration in the /etc/lico/wechat-agent.ini should be modified:
xxxxxxxxxx[app:main]appid = <your appid>secret = <your secret>Note: You need to run the following command for the changes to take effect
xxxxxxxxxxsystemctl restart lico-wechat-agentIf you need to use the billing function. The following part of the billing configuration in the /etc/lico/lico.ini.d/accounting.ini should be modified. Through this configuration, you can set the time and content format of the exported report according to your time zone and your needs.
x[ACCOUNTING.BILLING]# Time to generate daily report# localtime use 24-hour format(hour[0-23]:minute[0-59])DAILY_HOUR = "01:00"# Time to generate monthly report# day[1-28]MONTHLY_DAY = 2# ('en', 'English'),('sc', 'Simplified Chinese')LANGUAGE = "en"# The number of minutes between the current timezone and the UTC timezone# Use offset between local timezone and UTC timezone by default# Example: local timezone is GMT+8, the following should be 480.# TIMEZONE_OFFSET = 0# billing unit: {'dollar': '$'}, {'RMB': '\uffe5' }UNIT = "$"# billing title (Default: LiCO)TITLE = "LiCO"[ACCOUNTING.STORAGE]# Bill for GPFS, Change the following items according to your settings for GPFSUSER_QUOTE_IDENTITY_FIELD = ""GPFS_STORAGE_CMD = "mmrepquota"Due to the delay in slurm statistic date collection, billing data of memory will be lost if the memory usage of the job is not obtained immediately after job is completed. To get memory at the best effort, the following part of the job configuration in the /etc/lico/lico.ini.d/job.ini should be modified:
xxxxxxxxxx[JOB.SLURM]# The number of times the fetch was retriedMEMORY_RETRY_COUNT = 1# The wait interval for refetchMEMORY_RETRY_INTERVAL_SECOND = 0.5If you database server is not the same as the LiCO management node. Change the instructions in the following configuration file to the ip address of your database server.
/etc/lico/lico.ini
xxxxxxxxxx[DATABASE]# the ip address where the mariadb installedHOST = '127.0.0.1'[INFLUXDB]# the ip address where the influxdb installedHOST = '127.0.0.1'/etc/lico/icinga-mond.ini
xxxxxxxxxx[influxdb]# the ip address where the influxdb installedhost = 127.0.0.1Note: You need to run the following command for the changes to take effect
xxxxxxxxxxsystemctl restart lico-icinga-mondIf your confluent server is not the same as the LiCO management node. Change the instructions in the following configuration file to the ip address and port of your confluent server
/etc/lico/lico.ini.d/cluster.ini
xxxxxxxxxx[CLUSTER.CONFLUENT]# the confluent server node ipHOST = "127.0.0.1"# the confluent server portPORT = 4005/etc/lico/confluent-proxy.ini
xxxxxxxxxx[app:confluent-proxy]# the confluent server node iphost = 127.0.0.1# the confluent server portport = 4005Note: You need to run the following command for the changes to take effect
systemctl restart lico-confluent-proxy