๋ฒ๊ทธ ์ค๋ช
edge-orchestration์ด ์ฅ์น ๊ตฌ์ฑ์ edgex์ ์ฒ์ ๋ฑ๋กํ๋ ๊ฒฝ์ฐ edge-orchestration์ด ์บ์์์ ์ฅ์น๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค. ์ฌ๋ถํ
ํ ์๋ํฉ๋๋ค.
์ฌํํ๊ธฐ ์ํด
์์ง ์ค์ผ์คํธ๋ ์ด์ ์์ ๋ก๊ทธ
level=INFO ts=2021-06-08T11:09:41.747141457Z app=datastorage source=config.go:193 msg="Loaded configuration from ./res/configuration.toml"
level=INFO ts=2021-06-08T11:09:41.748290804Z app=datastorage source=config.go:304 msg="Using local configuration from file (0 envVars overrides applied)"
level=INFO ts=2021-06-08T11:09:41.748336679Z app=datastorage source=httpserver.go:99 msg="Web server starting (127.0.0.1:49986)"
level=INFO ts=2021-06-08T11:09:41.748393149Z app=datastorage source=init.go:144 msg="Check Metadata service's status by ping..."
level=INFO ts=2021-06-08T11:09:41.748528479Z app=datastorage source=init.go:144 msg="Check Data service's status by ping..."
level=INFO ts=2021-06-08T11:09:41.749614627Z app=datastorage source=init.go:68 msg="Service clients initialize successful."
level=INFO ts=2021-06-08T11:09:41.750747311Z app=datastorage source=service.go:207 msg="Addressable datastorage doesn't exist, creating a new one"
level=DEBUG ts=2021-06-08T11:09:41.751916563Z app=datastorage source=service.go:153 msg="Trying to find DeviceService: datastorage"
level=INFO ts=2021-06-08T11:09:41.752643978Z app=datastorage source=service.go:157 msg="DeviceService datastorage doesn't exist, creating a new one"
level=DEBUG ts=2021-06-08T11:09:41.754344754Z app=datastorage source=service.go:169 msg="New DeviceService Id: 6faac9ac-6ec1-41ee-8661-927954bb7ea1"
INFO[2021-06-08T11:09:41Z]storagedriver.go:43 Initialize [storagedriver] Device service intialize started
level=DEBUG ts=2021-06-08T11:09:41.75790956Z app=datastorage source=restrouter.go:119 route=/api/v1/resource/{deviceName}/{resourceName} methods=[POST] msg="Route added"
level=INFO ts=2021-06-08T11:09:41.757963324Z app=datastorage source=storagehandler.go:66 msg="Route /api/v1/resource/{deviceName}/{resourceName} added."
level=INFO ts=2021-06-08T11:09:41.759800964Z app=datastorage source=restrouter.go:75 msg="Registering v2 routes..."
level=DEBUG ts=2021-06-08T11:09:41.76021791Z app=datastorage source=profiles.go:47 msg="created absolute path for loading pre-defined Device Profiles: /edge-orchestration/res"
level=DEBUG ts=2021-06-08T11:09:41.76330122Z app=datastorage source=profiles.go:172 msg="Getting EnableValueDescriptorManagement configuration value from Core Metadata"
level=DEBUG ts=2021-06-08T11:09:41.763993203Z app=datastorage source=devices.go:29 msg="Loading pre-define Devices from configuration"
level=DEBUG ts=2021-06-08T11:09:41.764037017Z app=datastorage source=devices.go:35 msg="Device datastorage doesn't exist, creating a new one"
level=DEBUG ts=2021-06-08T11:09:41.764581907Z app=datastorage source=devices.go:75 msg="Adding Device: {\"origin\":1623150581764,\"description\":\"RESTful Device\",\"name\":\"datastorage\",\"adminState\":\"UNLOCKED\",\"operatingState\":\"ENABLED\",\"protocols\":{\"other\":{}},\"labels\":[\"rest\",\"json\"],\"service\":{\"origin\":1623150581751,\"id\":\"6faac9ac-6ec1-41ee-8661-927954bb7ea1\",\"name\":\"datastorage\",\"operatingState\":\"ENABLED\",\"addressable\":{\"origin\":1623150581749,\"id\":\"7b016ca7-5b53-4aa3-88e5-6f4a0b484271\",\"name\":\"datastorage\",\"protocol\":\"HTTP\",\"method\":\"POST\",\"address\":\"127.0.0.1\",\"port\":49986,\"path\":\"/api/v1/callback\",\"baseURL\":\"http://127.0.0.1:49986\",\"url\":\"http://127.0.0.1:49986/api/v1/callback\"},\"adminState\":\"UNLOCKED\"},\"profile\":{\"description\":\"REST Device\",\"id\":\"3b356db4-fe39-4dc4-bd25-8bebef5e15ce\",\"name\":\"datastorage\",\"manufacturer\":\"Home Edge\",\"model\":\"Home Edge\",\"labels\":[\"rest\",\"json\",\"numeric\",\"float\",\"int\"],\"deviceResources\":[{\"description\":\"json\",\"name\":\"json\",\"properties\":{\"value\":{\"type\":\"String\",\"readWrite\":\"RW\",\"mediaType\":\"application/json\"},\"units\":{\"type\":\"String\",\"readWrite\":\"R\"}}},{\"name\":\"int\",\"properties\":{\"value\":{\"type\":\"Int64\",\"readWrite\":\"RW\",\"mediaType\":\"text/plain\"},\"units\":{\"type\":\"String\",\"readWrite\":\"R\"}}},{\"description\":\"float\",\"name\":\"float\",\"properties\":{\"value\":{\"type\":\"Float64\",\"readWrite\":\"RW\",\"mediaType\":\"text/plain\"},\"units\":{\"type\":\"String\",\"readWrite\":\"R\"}}},{\"description\":\"jpeg\",\"name\":\"jpeg\",\"properties\":{\"value\":{\"type\":\"Binary\",\"readWrite\":\"RW\",\"mediaType\":\"image/jpeg\"},\"units\":{\"type\":\"String\",\"readWrite\":\"R\"}}},{\"description\":\"png\",\"name\":\"png\",\"properties\":{\"value\":{\"type\":\"Binary\",\"readWrite\":\"RW\",\"mediaType\":\"image/png\"},\"units\":{\"type\":\"String\",\"readWrite\":\"R\"}}},{\"description\":\"string\",\"name\":\"string\",\"properties\":{\"value\":{\"type\":\"String\",\"readWrite\":\"RW\",\"mediaType\":\"text/plain\"},\"units\":{\"type\":\"String\",\"readWrite\":\"R\"}}}]}}"
level=INFO ts=2021-06-08T11:09:41.766971106Z app=datastorage source=autodiscovery.go:32 msg="AutoDiscovery stopped: disabled by configuration"
level=INFO ts=2021-06-08T11:09:41.767031297Z app=datastorage source=autodiscovery.go:37 msg="AutoDiscovery stopped: interval error in configuration"
level=INFO ts=2021-06-08T11:09:41.76706353Z app=datastorage source=autodiscovery.go:41 msg="AutoDiscovery stopped: ProtocolDiscovery not implemented"
level=INFO ts=2021-06-08T11:09:41.767094873Z app=datastorage source=message.go:50 msg="Service dependencies resolved..."
level=INFO ts=2021-06-08T11:09:41.767156624Z app=datastorage source=message.go:51 msg="Starting datastorage to be replaced by makefile "
level=INFO ts=2021-06-08T11:09:41.767182718Z app=datastorage source=message.go:58 msg="Service started in: 20.913936ms"
level=DEBUG ts=2021-06-08T11:09:51.973581107Z app=datastorage source=storagehandler.go:84 msg="Received POST for Device=datastorage Resource=int"
level=INFO ts=2021-06-08T11:09:51.973670443Z app=datastorage source=manageddevices.go:71 msg="Device datastorage cannot be found in cache"
level=ERROR ts=2021-06-08T11:09:51.973714012Z app=datastorage source=storagehandler.go:88 msg="Incoming reading ignored. Device 'datastorage' not found"
ํ ์คํธ ํ๊ฒฝ ๊ตฌ์ฑ(๋ค์ ์ ๋ณด๋ฅผ ์๋ฃํ์ญ์์ค):
์๋ ํ์ธ์ @t25kim ,
๋ฒ๊ทธ๋ฅผ ๋ณต์ ํ์ต๋๋ค. ์ด๊ฒ์ ์ ์ฅ์น๋ฅผ ์ถ๊ฐํ๋ ค๊ณ ํ ๋๋ง๋ค ๋ฐ์ํฉ๋๋ค.
์์ :
์ด ์ฅ์น๋ ๋ ๋ฒ์งธ๋ก ๋น๋ํ ๋๊น์ง ๋ฐ๊ฒฌ๋์ง ์์ต๋๋ค. ๋๋ ์ด๊ฒ์ ์ฌ๋ฌ ๋ฒ ์๋ํ๊ณ ์ด ๋ฌธ์ ๋ ์ผ๊ด๋ ๊ฒ ๊ฐ์ต๋๋ค. ์ด๊ฒ์ด ํ๋ ธ์ด ๋ฆด๋ฆฌ์ค์ ๋ฌธ์ ์ธ์ง ์๋๋ฉด ์ฐ๋ฆฌ ์ธก์์ ํด์ผ ํ๋์ง ํ์ธํ๊ณ ์์ต๋๋ค.
์๋ ํ์ธ์ @t25kim ,
๋ฒ๊ทธ๋ฅผ ๋ณต์ ํ์ต๋๋ค. ์ด๊ฒ์ ์ ์ฅ์น๋ฅผ ์ถ๊ฐํ๋ ค๊ณ ํ ๋๋ง๋ค ๋ฐ์ํฉ๋๋ค.
์์ :
- YAML ํ๋กํ์ ์ด๋ฆ์ ์์ ํ๋ฉด
- ๊ตฌ์ฑ ํ์ผ์์ ์ฅ์น ์ด๋ฆ ํธ์ง
์ด ์ฅ์น๋ ๋ ๋ฒ์งธ๋ก ๋น๋ํ ๋๊น์ง ๋ฐ๊ฒฌ๋์ง ์์ต๋๋ค. ๋๋ ์ด๊ฒ์ ์ฌ๋ฌ ๋ฒ ์๋ํ๊ณ ์ด ๋ฌธ์ ๋ ์ผ๊ด๋ ๊ฒ ๊ฐ์ต๋๋ค. ์ด๊ฒ์ด ํ๋ ธ์ด ๋ฆด๋ฆฌ์ค์ ๋ฌธ์ ์ธ์ง ์๋๋ฉด ์ฐ๋ฆฌ ์ธก์์ ํด์ผ ํ๋์ง ํ์ธํ๊ณ ์์ต๋๋ค.
@sun-sharma ๊ฐ์ฌํฉ๋๋ค.
EdgeX v2.0.0์์๋ ๋์ผํ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ต๋๋ค. PR #326์ผ๋ก โโํ
์คํธํด ๋ณด์ธ์.
์ด ๋ฌธ์ ๋ EdgeX ์ธก์์ ๋ฐ์ํ๋ฉฐ ์๋น์ค๊ฐ ์์๋ ๋ ๋ฉํ๋ฐ์ดํฐ์ ์ด๋ฏธ ์๋ ์ฅ์น๊ฐ ์บ์์ ๋ก๋๋ฉ๋๋ค. ๊ทธ๋ฌ๋ ์ถ๊ฐ๋ ์ฅ์น๋ ์บ์์ ์ถ๊ฐ๋์ง ์์ต๋๋ค. ๋ฐ๋ผ์ ์ด๊ฒ์ ์ฌ๋ถํ ํ์ ๋ฐ์ํ์ง ์์ต๋๋ค. device-rest.go๋ก ์๋ํ์ต๋๋ค. ๊ฐ์ ํ๋์ ๊ด์ฐฐํ์ต๋๋ค. edgex ํ์ด๋๋ฆฌ์ device-sdk์์ ๋ณ๊ฒฝ์ด ํ์ํฉ๋๋ค. ๋ด๊ฐ ํ์ธํ ํ์ผ(/internal/provision/devices.go)์ edgexfoundry์ธ ๊ฒฝ์ฐ ์ฅ์น SDK์ ๋๋ค. ์ด๊ฒ์ ์ฅ์น ์์ ์ ํธ์ถ๋ฉ๋๋ค.
์ด ๋ฌธ์ ๋ EdgeX ์ธก์์ ๋ฐ์ํ๋ฉฐ ์๋น์ค๊ฐ ์์๋ ๋ ๋ฉํ๋ฐ์ดํฐ์ ์ด๋ฏธ ์๋ ์ฅ์น๊ฐ ์บ์์ ๋ก๋๋ฉ๋๋ค. ๊ทธ๋ฌ๋ ์ถ๊ฐ๋ ์ฅ์น๋ ์บ์์ ์ถ๊ฐ๋์ง ์์ต๋๋ค. ๋ฐ๋ผ์ ์ด๊ฒ์ ์ฌ๋ถํ ํ์ ๋ฐ์ํ์ง ์์ต๋๋ค. device-rest.go๋ก ์๋ํ์ต๋๋ค. ๊ฐ์ ํ๋์ ๊ด์ฐฐํ์ต๋๋ค. edgex ํ์ด๋๋ฆฌ์ device-sdk์์ ๋ณ๊ฒฝ์ด ํ์ํฉ๋๋ค. ๋ด๊ฐ ํ์ธํ ํ์ผ(/internal/provision/devices.go)์ edgexfoundry์ธ ๊ฒฝ์ฐ ์ฅ์น SDK์ ๋๋ค. ์ด๊ฒ์ ์ฅ์น ์์ ์ ํธ์ถ๋ฉ๋๋ค.
@nitu-s-gupta ์ ์ ํจ๊ป EdgeX์ ์ ๊ทผํ์ฌ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํด ๋ณด๋ ๊ฒ์ ์ด๋จ๊น์? ๐
์ด ๋ฌธ์ ๋ EdgeX ์ธก์์ ๋ฐ์ํ๋ฉฐ ์๋น์ค๊ฐ ์์๋ ๋ ๋ฉํ๋ฐ์ดํฐ์ ์ด๋ฏธ ์๋ ์ฅ์น๊ฐ ์บ์์ ๋ก๋๋ฉ๋๋ค. ๊ทธ๋ฌ๋ ์ถ๊ฐ๋ ์ฅ์น๋ ์บ์์ ์ถ๊ฐ๋์ง ์์ต๋๋ค. ๋ฐ๋ผ์ ์ด๊ฒ์ ์ฌ๋ถํ ํ์ ๋ฐ์ํ์ง ์์ต๋๋ค. device-rest.go๋ก ์๋ํ์ต๋๋ค. ๊ฐ์ ํ๋์ ๊ด์ฐฐํ์ต๋๋ค. edgex ํ์ด๋๋ฆฌ์ device-sdk์์ ๋ณ๊ฒฝ์ด ํ์ํฉ๋๋ค. ๋ด๊ฐ ํ์ธํ ํ์ผ(/internal/provision/devices.go)์ edgexfoundry์ธ ๊ฒฝ์ฐ ์ฅ์น SDK์ ๋๋ค. ์ด๊ฒ์ ์ฅ์น ์์ ์ ํธ์ถ๋ฉ๋๋ค.
๋
ธ๋ ฅํด ์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค!
์์ธํ ์ค๋ช
ํ์๋ฉด edgex-metadata๋ ์บ์ ์
๋ฐ์ดํธ๋ฅผ ์ํด ์๋น์ค์ ์์ฒญ (๊ฐ์ด๋๊ฐ ์๋ชป๋จ)์ ๋ณด๋ด์ผ ํฉ๋๋ค. ๊ทธ๋ฌ๋ edgex-metadata๋ ๊ทธ๋ ๊ฒ ํ์ง ์์ต๋๋ค.
ํด๋น REST API๋ฅผ ๋ฐ์ดํฐ ์คํ ๋ฆฌ์ง์ ํธ์ถํ์ ๋ ์บ์๊ฐ ์
๋ฐ์ดํธ๋์์ต๋๋ค.
curl http://localhost:48081/api/v1/device
[{"created":1629351516733,"modified":1629351516733,"origin":1629351516731,"description":"RESTful Device","id":"774deba4-5469-4c38-8c2a-93a0f3c08252","name":"edge-orchestration-c1b23cc6-0767-400a-9cf0-36e1b3902da2",
$ curl -X 'POST' ' http://localhost :49986/api/v1/callback' -H 'accept: / ' -H '์ฝํ ์ธ ์ ํ: ์ ํ๋ฆฌ์ผ์ด์ /json' -d '{"์ ํ":"DEVICE ","id":"774deba4-5469-4c38-8c2a-93a0f3c08252"}'
INFO[2021-08-19T06:01:36Z]discovery.go:577 func1
level=INFO ts=2021-08-19T06:02:25.506828567Z app=datastorage source=device.go:72 msg="Added device: edge-orchestration-c1b23cc6-0767-400a-9cf0-36e1b3902da2"
INFO[2021-08-19T06:02:25Z]storagedriver.go:73 AddDevice [storagedriver] Device has been successfully added!!!!!! edge-orchestration-c1b23cc6-0767-400a-9cf0-36e1b3902da2
level=DEBUG ts=2021-08-19T06:02:25.50692288Z app=datastorage source=device.go:82 msg="Invoked driver.AddDevice callback for edge-orchestration-c1b23cc6-0767-400a-9cf0-36e1b3902da2"
level=DEBUG ts=2021-08-19T06:02:25.50693632Z app=datastorage source=device.go:89 msg="Handler - starting AutoEvents for device edge-orchestration-c1b23cc6-0767-400a-9cf0-36e1b3902da2"
edgex๊ฐ ์์ ๋๊ฑฐ๋ ๋ฐ์ดํฐ ์ ์ฅ์์ ํด๊ฒฐ ๋ฐฉ๋ฒ ์ฝ๋๋ฅผ ์ถ๊ฐํ ์ ์๋ค๊ณ ์๊ฐํฉ๋๋ค.
๋น์ ์ ๋ฌด์์ ์ ํธํฉ๋๊น? (์ด ๋ฌธ์ ๋ฅผ edgex์ ๊ณต์ ํ๋ ๊ฒ์ ์คํ ์์ค ํ์
์ ์ข์ต๋๋ค.
@t25kim device sdk์ edgex github์ ์ด์๋ฅผ ์ฌ๋ ค์ ์ ๋ฐ์ดํธ ํด๋ณด๋๊ฑด ์ด๋จ๊น์? API๋ฅผ ํธ์ถํ๋ ๊ฒ๊ณผ ๊ฐ์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์ํํ ์ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ๋ด๊ฐ ์์์ฐจ๋ฆฐ ๋ ํ๋์ ์ฌ์ค์ ์ฐ๋ฆฌ๊ฐ ์ฝ๋ฐฑ์ ๊ฐ์ง๊ณ ์๋ storagedriver์ ๋๋ค. ์ด๊ฒ์ ์ฅ์น๊ฐ ์ถ๊ฐ๋ ๋ ํธ์ถ๋์ด์ผ ํฉ๋๋ค. ๊ทธ๋ฌ๋ ์์ ๋๋ ๋จ๊ณ๊ฐ ๊ฑฐ๊ธฐ์ ํฌํจ๋ ๊ฒ์ด๊ธฐ ๋๋ฌธ์ ๊ทธ๊ฒ๋ ํธ์ถ๋์ง ์์ต๋๋ค.
์ด ๋ฌธ์ ๋ EdgeX ์ธก์์ ๋ฐ์ํ๋ฉฐ ์๋น์ค๊ฐ ์์๋ ๋ ๋ฉํ๋ฐ์ดํฐ์ ์ด๋ฏธ ์๋ ์ฅ์น๊ฐ ์บ์์ ๋ก๋๋ฉ๋๋ค. ๊ทธ๋ฌ๋ ์ถ๊ฐ๋ ์ฅ์น๋ ์บ์์ ์ถ๊ฐ๋์ง ์์ต๋๋ค. ๋ฐ๋ผ์ ์ด๊ฒ์ ์ฌ๋ถํ ํ์ ๋ฐ์ํ์ง ์์ต๋๋ค. device-rest.go๋ก ์๋ํ์ต๋๋ค. ๊ฐ์ ํ๋์ ๊ด์ฐฐํ์ต๋๋ค. edgex ํ์ด๋๋ฆฌ์ device-sdk์์ ๋ณ๊ฒฝ์ด ํ์ํฉ๋๋ค. ๋ด๊ฐ ํ์ธํ ํ์ผ(/internal/provision/devices.go)์ edgexfoundry์ธ ๊ฒฝ์ฐ ์ฅ์น SDK์ ๋๋ค. ์ด๊ฒ์ ์ฅ์น ์์ ์ ํธ์ถ๋ฉ๋๋ค.
๋ ธ๋ ฅํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!
์์ธํ ์ค๋ช ํ์๋ฉด edgex-metadata๋ ์บ์ ์ ๋ฐ์ดํธ๋ฅผ ์ํด ์๋น์ค์ ์์ฒญ (๊ฐ์ด๋๊ฐ ์๋ชป๋จ)์ ๋ณด๋ด์ผ ํฉ๋๋ค. ๊ทธ๋ฌ๋ edgex-metadata๋ ๊ทธ๋ ๊ฒ ํ์ง ์์ต๋๋ค.
ํด๋น REST API๋ฅผ ๋ฐ์ดํฐ ์คํ ๋ฆฌ์ง์ ํธ์ถํ์ ๋ ์บ์๊ฐ ์ ๋ฐ์ดํธ๋์์ต๋๋ค.edgex-๋ฉํ๋ฐ์ดํฐ ๋ฐ์ดํฐ
curl http://localhost:48081/api/v1/device [{"created":1629351516733,"modified":1629351516733,"origin":1629351516731,"description":"RESTful Device","id":"774deba4-5469-4c38-8c2a-93a0f3c08252","name":"edge-orchestration-c1b23cc6-0767-400a-9cf0-36e1b3902da2",
CURL ์์ฒญ
$ curl -X 'POST' ' http://localhost :49986/api/v1/callback' -H '์๋ฝ: _/_' -H '์ฝํ ์ธ ์ ํ: ์ ํ๋ฆฌ์ผ์ด์ /json' -d '{"์ ํ": "์ฅ์น","id":"774deba4-5469-4c38-8c2a-93a0f3c08252"}'
์์ง ์ค์ผ์คํธ๋ ์ด์ ๋ก๊ทธ
INFO[2021-08-19T06:01:36Z]discovery.go:577 func1 level=INFO ts=2021-08-19T06:02:25.506828567Z app=datastorage source=device.go:72 msg="Added device: edge-orchestration-c1b23cc6-0767-400a-9cf0-36e1b3902da2" INFO[2021-08-19T06:02:25Z]storagedriver.go:73 AddDevice [storagedriver] Device has been successfully added!!!!!! edge-orchestration-c1b23cc6-0767-400a-9cf0-36e1b3902da2 level=DEBUG ts=2021-08-19T06:02:25.50692288Z app=datastorage source=device.go:82 msg="Invoked driver.AddDevice callback for edge-orchestration-c1b23cc6-0767-400a-9cf0-36e1b3902da2" level=DEBUG ts=2021-08-19T06:02:25.50693632Z app=datastorage source=device.go:89 msg="Handler - starting AutoEvents for device edge-orchestration-c1b23cc6-0767-400a-9cf0-36e1b3902da2"
edgex๊ฐ ์์ ๋๊ฑฐ๋ ๋ฐ์ดํฐ ์ ์ฅ์์ ํด๊ฒฐ ๋ฐฉ๋ฒ ์ฝ๋๋ฅผ ์ถ๊ฐํ ์ ์๋ค๊ณ ์๊ฐํฉ๋๋ค.
๋น์ ์ ๋ฌด์์ ์ ํธํฉ๋๊น? (์ด ๋ฌธ์ ๋ฅผ edgex์ ๊ณต์ ํ๋ ๊ฒ์ ์คํ ์์ค ํ์ ์ ์ข์ต๋๋ค.
@jpwhitemn ์๋ ํ์ธ์, EdgeX Foundry์ ๊ด๋ จ๋ ๋ฐ์ดํฐ ์คํ ๋ฆฌ์ง ๋ฌธ์ ๋ฅผ ๋ฐ๊ฒฌํ์ต๋๋ค. EdgeX ์ปค๋ฎค๋ํฐ์์ ์ด ์ฃผ์ ๋ฅผ ๋ ผ์ ๋ฐ/๋๋ ํด๊ฒฐํ ์ ์๋ ์ ํฉํ ์ฌ๋์ ์๊ฐํ ์ ์์ต๋๊น? ๐
์ ๋ฐ์ดํธํ ์ ์๋๋ก device sdk์ edgex github์์ ๋ฌธ์ ๋ฅผ ์ ๊ธฐํ๋ ๊ฒ์ ์ด๋ป์ต๋๊น? API๋ฅผ ํธ์ถํ๋ ๊ฒ๊ณผ ๊ฐ์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์ํํ ์ ์์ต๋๋ค. ๊ทธ๋ฌ๋ ๋ด๊ฐ ์์์ฐจ๋ฆฐ ๋ ํ๋์ ์ฌ์ค์ ์ฐ๋ฆฌ๊ฐ ์ฝ๋ฐฑ์ ๊ฐ์ง๊ณ ์๋ storagedriver์ ๋๋ค. ์ด๊ฒ์ ์ฅ์น๊ฐ ์ถ๊ฐ๋ ๋ ํธ์ถ๋์ด์ผ ํฉ๋๋ค. ๊ทธ๋ฌ๋ ์์ ๋๋ ๋จ๊ณ๊ฐ ๊ฑฐ๊ธฐ์ ํฌํจ๋ ๊ฒ์ด๊ธฐ ๋๋ฌธ์ ๊ทธ๊ฒ๋ ํธ์ถ๋์ง ์์ต๋๋ค.
์ด ๋ฌธ์ ๋ฅผ edgex์ ๊ณต์ ํ๋ ๋ฐ ๋์ํฉ๋๋ค. ํ์ง๋ง home edge d-release ์ด์ ์ edgex์ ํจ์น๊ฐ ๊ตฌํ๋์ด ์์ง ์๋ค๋ฉด Edge Orchestration์์ ์์ ํ๋๋ก ํ์.
.๊ฒ์์ด {
๋ฐฐ๊ฒฝ์: #ffee94
}
NS {
๊ธ๊ผด ํฌ๊ธฐ: 10pt; ์ฌ๋ฐฑ-ํ๋จ: 5px; FONT-FAMILY: Arial, Arial; ์ฌ๋ฐฑ-์๋จ: 5px
}
TD {
๊ธ๊ผด ํฌ๊ธฐ: 10pt; ์ฌ๋ฐฑ-ํ๋จ: 5px; FONT-FAMILY: Arial, Arial; ์ฌ๋ฐฑ-์๋จ: 5px
}
๋ฆฌ {
๊ธ๊ผด ํฌ๊ธฐ: 10pt; ์ฌ๋ฐฑ-ํ๋จ: 5px; FONT-FAMILY: Arial, Arial; ์ฌ๋ฐฑ-์๋จ: 5px
}
์ ์ฒด {
๊ธ๊ผด ํฌ๊ธฐ: 10pt; FONT-FAMILY: Arial, Arial
}
NS {
๊ธ๊ผด ํฌ๊ธฐ: 10pt; ์ฌ๋ฐฑ-ํ๋จ: 5px; FONT-FAMILY: Arial, Arial; ์ฌ๋ฐฑ-์๋จ: 5px
}
์๋
ํผํฐ,
์ด ๋ฌธ์ ๋ EdgeX ์ธก์์ ๋ฐ์ํ๋ ๊ฒ์ด ์๋๋๋ค. Cloud Tsai์ ๋
ผ์ํ ํ ์๋ชป๋ IP ์ฃผ์ ์ฌ์ฉ์ ์ดํดํ์ต๋๋ค. ๊ทธ ์ด์ ๋ coredata๊ฐ ์ฝ๋ฐฑ์ ํธ์ถํ ์ ์์ด ์บ์๊ฐ ์
๋ฐ์ดํธ๋์ง ์์๊ธฐ ๋๋ฌธ์
๋๋ค. ๋ก์ปฌ ์ปดํจํฐ์ ๊ฒฝ์ฐ ํ
์คํธํ ๋๋ก docker0 IP ์ฃผ์๋ฅผ ์ฌ์ฉํ์ฌ ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๋ค.
๊ทธ๋ฌ๋ ์ด์ ๋ฌธ์ ๋ ํ์์ด ํ ์ฅ์น์์ ๋
๋ฆฝ์ ์ผ๋ก ์คํ๋๋ EdgeX์ ๋คํธ์ํฌ๋ก ์ฐ๊ฒฐ๋ ๋ค๋ฅธ ์ฅ์น์์ ์คํ๋๋ Edge-Orchestration์ ๋ํด ์์ฃผ ์ ์ธ๊ธํ ์๋๋ฆฌ์ค์
๋๋ค. ๋ฐ๋ผ์ ์บ์ ๋ฌธ์ ์ ์๊ด์์ด ํ
์คํธํด์ผ ํฉ๋๋ค. ๋น์ทํ ์ค์ ์ ํ๋ ค๊ณ ํฉ๋๋ค. ์ผ๋ฐ ping docker(alpine)๋ก ๋น์ทํ ์๋๋ฆฌ์ค๋ฅผ ํ
์คํธํ์ง๋ง ์ค๋ฒ๋ ์ด ๋คํธ์ํฌ๋ฅผ ์ฌ์ฉํ์ฌ ํต์ ์ ์ค์ ํ ์ ์์์ต๋๋ค. ์ด์ ์์ง ์ค์ผ์คํธ๋ ์ด์
์ ์๋ํด์ผ ํฉ๋๋ค.
๊ฐ์ฌํฉ๋๋ค
๋ํฌ
---------- ์๋ณธ ๋ฉ์์ง ------
๋ณด๋ธ ์ฌ๋ : Peter Moonki @ . >๋ ์ง : 2021-09-07 07:46 (GMT+5:30)์ ๋ชฉ : Re: [lf-edge/edge-home-orchestration-go] [DataStorage]๊ฐ ์บ์์์ ์ฅ์น๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค(#312).๋ฐ๋ ์ฌ๋ : * @ . >
CC : Nitu Sajjanlal @ . >, @ .* >
@nitu-s-gupta ์ฐ๋ฆฌ ์์ฒญ์ ๊ทผ๊ฑฐ๊ฐ EdgeX์ ๊ธฐ์กด device-sdk-go์ ์ถฉ๋ํ๋ ๊ฒ ๊ฐ๊ธฐ ๋๋ฌธ์ EdgeX์์ ์์ฒญํ๋ ๋์ HomeEdge์์ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ๊ฒ์ ๋ํด ์ด๋ป๊ฒ ์๊ฐํ์ญ๋๊น?
โ๋น์ ์ด ์ธ๊ธ๋์๊ธฐ ๋๋ฌธ์ ์ด ์ด๋ฉ์ผ์ ๋ฐ์์ต๋๋ค.์ด ์ด๋ฉ์ผ์ ์ง์ ํ์ ํ๊ฑฐ๋ GitHub์์ ๋ณด๊ฑฐ๋ ๊ตฌ๋
์ ์ทจ์ํฉ๋๋ค.iOS ๋๋ Android์ฉ GitHub Mobile์ ์ฌ์ฉํ์ฌ ์ด๋ ์ค์ ์๋ฆผ์ ๋ถ๋ฅํ์ญ์์ค.
์น์ ํ ์ค๋ช ๊ฐ์ฌํฉ๋๋ค, @nitu-s-gupta ๐
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
.๊ฒ์์ด {
๋ฐฐ๊ฒฝ์: #ffee94
}
NS {
๊ธ๊ผด ํฌ๊ธฐ: 10pt; ์ฌ๋ฐฑ-ํ๋จ: 5px; FONT-FAMILY: Arial, Arial; ์ฌ๋ฐฑ-์๋จ: 5px
}
TD {
๊ธ๊ผด ํฌ๊ธฐ: 10pt; ์ฌ๋ฐฑ-ํ๋จ: 5px; FONT-FAMILY: Arial, Arial; ์ฌ๋ฐฑ-์๋จ: 5px
}
๋ฆฌ {
๊ธ๊ผด ํฌ๊ธฐ: 10pt; ์ฌ๋ฐฑ-ํ๋จ: 5px; FONT-FAMILY: Arial, Arial; ์ฌ๋ฐฑ-์๋จ: 5px
}
์ ์ฒด {
๊ธ๊ผด ํฌ๊ธฐ: 10pt; FONT-FAMILY: Arial, Arial
}
NS {
๊ธ๊ผด ํฌ๊ธฐ: 10pt; ์ฌ๋ฐฑ-ํ๋จ: 5px; FONT-FAMILY: Arial, Arial; ์ฌ๋ฐฑ-์๋จ: 5px
}
์๋ ํผํฐ,
์ด ๋ฌธ์ ๋ EdgeX ์ธก์์ ๋ฐ์ํ๋ ๊ฒ์ด ์๋๋๋ค. Cloud Tsai์ ๋ ผ์ํ ํ ์๋ชป๋ IP ์ฃผ์ ์ฌ์ฉ์ ์ดํดํ์ต๋๋ค. ๊ทธ ์ด์ ๋ coredata๊ฐ ์ฝ๋ฐฑ์ ํธ์ถํ ์ ์์ด ์บ์๊ฐ ์ ๋ฐ์ดํธ๋์ง ์์๊ธฐ ๋๋ฌธ์ ๋๋ค. ๋ก์ปฌ ์ปดํจํฐ์ ๊ฒฝ์ฐ ํ ์คํธํ ๋๋ก docker0 IP ์ฃผ์๋ฅผ ์ฌ์ฉํ์ฌ ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๋ค.
๊ทธ๋ฌ๋ ์ด์ ๋ฌธ์ ๋ ํ์์ด ํ ์ฅ์น์์ ๋ ๋ฆฝ์ ์ผ๋ก ์คํ๋๋ EdgeX์ ๋คํธ์ํฌ๋ก ์ฐ๊ฒฐ๋ ๋ค๋ฅธ ์ฅ์น์์ ์คํ๋๋ Edge-Orchestration์ ๋ํด ์์ฃผ ์ ์ธ๊ธํ ์๋๋ฆฌ์ค์ ๋๋ค. ๋ฐ๋ผ์ ์บ์ ๋ฌธ์ ์ ์๊ด์์ด ํ ์คํธํด์ผ ํฉ๋๋ค. ๋น์ทํ ์ค์ ์ ํ๋ ค๊ณ ํฉ๋๋ค. ์ผ๋ฐ ping docker(alpine)๋ก ๋น์ทํ ์๋๋ฆฌ์ค๋ฅผ ํ ์คํธํ์ง๋ง ์ค๋ฒ๋ ์ด ๋คํธ์ํฌ๋ฅผ ์ฌ์ฉํ์ฌ ํต์ ์ ์ค์ ํ ์ ์์์ต๋๋ค. ์ด์ ์์ง ์ค์ผ์คํธ๋ ์ด์ ์ ์๋ํด์ผ ํฉ๋๋ค.
๊ฐ์ฌํฉ๋๋ค
๋ํฌ
---------- ์๋ณธ ๋ฉ์์ง ------
๋ณด๋ธ ์ฌ๋ : Peter Moonki @ . >๋ ์ง : 2021-09-07 07:46 (GMT+5:30)์ ๋ชฉ : Re: [lf-edge/edge-home-orchestration-go] [DataStorage]๊ฐ ์บ์์์ ์ฅ์น๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค(#312).๋ฐ๋ ์ฌ๋ : * @ . >
CC : Nitu Sajjanlal @ . >, @ .* >
@nitu-s-gupta ์ฐ๋ฆฌ ์์ฒญ์ ๊ทผ๊ฑฐ๊ฐ EdgeX์ ๊ธฐ์กด device-sdk-go์ ์ถฉ๋ํ๋ ๊ฒ ๊ฐ๊ธฐ ๋๋ฌธ์ EdgeX์์ ์์ฒญํ๋ ๋์ HomeEdge์์ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ๊ฒ์ ๋ํด ์ด๋ป๊ฒ ์๊ฐํ์ญ๋๊น?
โ๋น์ ์ด ์ธ๊ธ๋์๊ธฐ ๋๋ฌธ์ ์ด ์ด๋ฉ์ผ์ ๋ฐ์์ต๋๋ค.์ด ์ด๋ฉ์ผ์ ์ง์ ํ์ ํ๊ฑฐ๋ GitHub์์ ๋ณด๊ฑฐ๋ ๊ตฌ๋ ์ ์ทจ์ํฉ๋๋ค.iOS ๋๋ Android์ฉ GitHub Mobile์ ์ฌ์ฉํ์ฌ ์ด๋ ์ค์ ์๋ฆผ์ ๋ถ๋ฅํ์ญ์์ค.