Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.03 KB

debug-lc.md

File metadata and controls

35 lines (26 loc) · 1.03 KB

This document is intended to provide contributors with an introduction to develop LC(LocalController) of the Sedna project.

Debug LC

1. config LC:

Setting up the environments:

  1. GM_ADDRESS: the addresss of GM.
  2. NODENAME: the node name at which LC running.
  3. ROOTFS_MOUNT_DIR: the directory of the host mounts, default /rootfs.
# update these values if neccessary
export GM_ADDRESS=192.168.0.10:9000
export NODENAME=edge-node
export ROOTFS_MOUNT_DIR=""

Note: If you have already run Sedna by following the install doc, and decide to run LC in-place, you don't need to setup these environments, run make lcimage and kubectl -n sedna delete pod lc-<pod-name>.

2. compile and run LC directly:

make WHAT=lc
_output/bin/sedna-lc -v4

Alternatively you can debug LC with golang delve:

dlv debug cmd/sedna-lc/sedna-lc.go -- -v4