title | description | keywords | author | category | layout | tags | |
---|---|---|---|---|---|---|---|
Configure Blocklet |
Configure Blocklet |
blocklet server, blocklet |
wangshijun |
documentation |
|
Click a Blocklet on the Blocklet Management page to arrive on the configuration page for the respective Blocklet. The page provides details about the installed Blocklet. The page allows you to control Blocklet operation and update its configuration.
On the details page, there is a row of operation buttons on the top right:
Start
Stop
Restart
Reload
: Reload the configurationRemove
(as stated earlier, you will be prompted to choose whether to delete the blocklet data as well)
There are the following three tabs that provide further details about the Blocklet
The Overview tab provides details like version, status, location, source, etc, for the installed Blocklet binary. It also captures basic usage metrics like uptime, CPU, and memory usage.
The page also shows different data locations for the different types of files used by the Blocklet.
- APP Directory: The location to store Blocklet binary.
- Data Directory: The location to store all data processed by a Blocklet.
- Log Directory: The location for the logs generated by the Blocklet
- Cache Directory: The location used for caching data by the blocklet.
You may prefer to monitor the logs and backup all data for the required directories.
The Access URLs tab provides various access locations for a running Blocklet.
These URL are specified by the interfaces provided in the Blocklet configuration.
The Configuration tab displays different user defined, Blocklet defined and Blocklet Server defined environment variables.
The Blocklet uses the user-defined variables to customize its behavior as per the provided configuration. These variables are defined by the Blocklet developer and updated by the user as per the required usecase. Please refer to Blocklet documents to determine the supported user-defined variables.
The following variables are from kitchen Sink blocklet.
FORGE_RELEASE_MIRROR
: https://releases.arcblockio.cnONLY_START_IN_EVEN_MINUTES
: noONLY_YES_OR_NO
: no
User defined variables can be updated by clicking the corresponding pencil
(edit) icon. This converts the value field into an editable text box. The value updates are not auto saved, and a user must confirm or reject the changes by clicking the tick
or the cross
icon.
These variables area defined by Blocklet Server to specify an installed blocklet configuration. Most of these variables are immutable. Only a few of these variables can be updated to configure blocklets.
BLOCKLET_PORT
: Blocklet portBLOCKLET_APP_DIR
: Blocklet application directoryBLOCKLET_MAIN_DIR
: Blocklet main directoryBLOCKLET_DATA_DIR
: Blocklet data directoryBLOCKLET_LOG_DIR
: Blocklet log directoryBLOCKLET_CACHE_DIR
: Blocklet cache directoryBLOCKLET_APP_SK
: Blocklet app skBLOCKLET_APP_ID
: Blocklet app idBLOCKLET_BASE_URL
: Blocklet base URLBLOCKLET_REAL_DID
: Blocklet prefixBLOCKLET_DID
: Blocklet prefixBLOCKLET_APP_NAME
: Blocklet prefixBLOCKLET_APP_DESCRIPTION
: Blocklet prefix
These are immutable variables that provide Blocklet Server related information.
ABT_NODE_DID
: Blocklet Server didABT_NODE_PK
: Blocklet Server pkABT_NODE
: Blocklet Server VersionABT_NODE_PORT
: Blocklet Server portABT_NODE_SERVICE_PORT
: Blocklet Server service portABT_NODE_EVENT_PORT
: Blocklet Server Event port