Soal Uji Coba LKS Provinsi Jatim
Soal Uji Coba LKS Provinsi Jatim
Soal Uji Coba LKS Provinsi Jatim
CLOUD COMPUTING
LKS PROVINSI JAWA TIMUR
Description Project (1 Hours)
Modul Name: IoT Project
NODE_ENV=production
MQTT_BROKER=mqtt://your_broker_mqtt
MQTT_PORT=1883
MQTT_USERNAME=YOUR_USERNAME_MQTT
MQTT_PASSWORD=YOUR_PASSWORD_MQTT
LOG_PATH=YOUR_LOG_FOLDER_LOCATION
CACHE_PATH=YOUR_CACHE_PATH_FILE_LOCATION_STORE
File Storage
A central file storage location is NOT
a requirement for the application to
CACHE_PATH=YOUR_CACHE_PATH_FILE_LOCATION_STORE
LOG_PATH=YOUR_LOG_FOLDER_LOCATION
operate. The application will serve
some requests faster with a
centralized file storage solution. As
with the previous service example,
you could create a centralized file
storage solution with Elastic File
Storage to store logs and cache files
from the application. You can use a
local directory to save the log files,
but a shared storage solution or the
ability to share files to each instance
will allow you to have a centralized
log file, which will make the
maintenance process easier. You
must set the EFS multiple AZ, and
the file cache needs a central file
storage solution for consistent data.
The relevant environment variable in
the ".env" configuration file is below:
CACHE_PATH is the local directory
for file cache on the instance where
the server application can both read
and write to the cache files. This can
be a local directory on the server, or
a remote directory mounted as a
local directory on the server. If you
do not set the cache environment
path, the default path storage will
store in
<your_apps_path>/server/tmp.
LOG_PATH is the local directory for
storing application logs on the
instance where the server
application can both read and write
to the cache files. This can be a local
directory on the server or a remote
directory mounted as a local
directory on the server. If you do not
set the cache environment path, the
default log storage will store
<your_apps_path>/server/logs.
DATABASE
The application must use a reliable
Relational Database Service (RDS)
with a serverless V2 concept with
Aurora MySQL 3.0.2 (compatible
with MySQL 8.0.23). The template
type used is Dev/Test. The database
name is log_mqtt, the username is
admin, and the password is
lks2023!@. Use serverless instance
configuration. Increase the database
unit capacity automatically according
to the database load demand.
Ensure that the maximum unit
capacity is no more than 16 GiB
RAM to save costs. Connectivity
using Dual-stack mode. Once your
serverless is provisioned, you must
create the necessary tables to serve
the requests, the name of table is
tbl_data. You can use the table
definition below using query or
HeidiSQL software and create fields
as follows:
topic VARCHAR(50), NULL
message VARCHAR(50), NULL
Once complete, you must set the
DB_HOST=YOUR_MYSQL_HOST
DB_USER=YOUR_MYSQL_USERNAME
DB_PASSWORD=YOUR_MYSQL_PASSWORD
DB_NAME=YOUR_MYSQL_DATABASE_NAME
INTERNET OF THINGS(IOT)