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:
systemctl restart lico
The 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 attempts
MAX_CHANCE = 5
# If user login failures exceed MAX_CHANCE,the system will suspend this user for 1 hour
LOCKED_HOURS = 1
The following part of the job resource configuration in the /etc/lico/lico.ini.d/job.ini
should be modified:
xxxxxxxxxx
[JOB.CSRES]
# the port range used by job.
PORT_BEGIN = 25000
PORT_END = 27500
If 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 installed
HOST = '127.0.0.1'
[INFLUXDB]
# the ip address where the influxdb installed
HOST = '127.0.0.1'
If you need the function of publishing your aistudio model to docker, you must prepare a letrain docker image on a docker registry. The following part of the aistudio configuration in the /etc/lico/lico.ini.d/aistudio.ini
should be modified:
xxxxxxxxxx
[AISTUDIO]
# Letrain docker image
LETRAIN_DOCKER_IMAGE = ''
In the publish operation, the /tmp
directory is used by default to cache temporary files. If you want to change it,the following part of the Publish configuration in the /etc/lico/lico.ini.d/publish.ini
should be modified:
xxxxxxxxxx
[PUBLISH]
BUILDAH_TMPDIR = ""
When you need to publish docker. you need to edit the /etc/containers/storage.conf
file. modify the mountopt = "nodev,metacopy=on"
to mountopt = "nodev,metacopy=off"
.
If you want to use lico web to build images. the following part of the container configuration in the /etc/lico/lico.ini.d/container.ini
should be modified:
xxxxxxxxxx
[CONTAINER]
# Singularity will cache SIF container images generated from remote sources, and any OCI/docker layers used to create them.The cache is created at $HOME/.singularity/cache by default. The location of the cache can be changed by setting the SINGULARITY_CACHEDIR environment variable.
SINGULARITY_CACHEDIR = ""
# When building a container, or pulling/running a Singularity container from a Docker/OCI source, a temporary working space is required. You may need to set SINGULARITY_TMPDIR when building a large container on a system which has a small /tmp filesystem
SINGULARITY_TMPDIR = ""
If you want to control the time when jupyter is automatically closed. the following part of the devtools configuration in the /etc/lico/lico.ini.d/devtools.ini
should be modified:
xxxxxxxxxx
[DEVTOOLS]
#Shut down the server after N seconds with no kernels or terminals running and no activity.
SHUTDOWN_NO_ACTIVITY_TIMEOUT=3600
#Timeout (in seconds) after which a kernel is considered idle and ready to be culled.
KERNEL_CULL_IDLE_TIMEOUT=300
#Timeout (in seconds) in which a terminal has been inactive and ready to be culled.
TERMINAL_CULL_INACTIVE_TIMEOUT=300