skywalking icon indicating copy to clipboard operation
skywalking copied to clipboard

[Bug] skywalking-showcase docker deployment has some incorrect parts

Open yswdqz opened this issue 1 year ago • 7 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Apache SkyWalking Component

Showcase (apache/skywalking-showcase)

What happened

  1. rocketmq-feature seems incorrect: image I believe that a feature should utilize a common OAP(such as single-node) instead of spinning up a new one. Additionally, there are issues with the configuration of this OAP.

  2. whether we need to expose this port? image

  3. oap dependency image Some feature depend on oap. However, in some cases, we only need these services and do not require the built-in OAP.

and also, some config files use oap as host: image so we can't easily edit Makefile to change oap address. image

Are you willing to submit a pull request to fix on your own?

  • [ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

yswdqz avatar Apr 08 '24 06:04 yswdqz

@kezhenxu94 Could you guide @yswdqz about this? We may need to polish showcase.

wu-sheng avatar Apr 08 '24 06:04 wu-sheng

  1. rocketmq-feature seems incorrect:

image I believe that a feature should utilize a common OAP(such as single-node) instead of spinning up a new one. Additionally, there are issues with the configuration of this OAP.

Nice catch! I think we can fix this by simply removing the OAP section in this docker compose file.

  1. whether we need to expose this port?
image

This is not mandatory as we have a loadgen to trigger traffic, however, if users want to manually trigger traffic, they can open this port in their browser.

  1. oap dependency

image Some feature depend on oap. However, in some cases, we only need these services and do not require the built-in OAP.

Can you elaborate? OAP is required to be up and running for those components that need to talk to OAP, in your screenshot, the vm exporter needs to send data to OAP so it needs to wait for OAP's readiness.

and also, some config files use oap as host: image so we can't easily edit Makefile to change oap address. image

Good catch, this can be replace with the env var BACKEND_SERVICE.

Will you file a pull request @yswdqz ?

kezhenxu94 avatar Apr 08 '24 06:04 kezhenxu94

Yes, but I might not have much time recently. I'll submit the PR over the weekend.

yswdqz avatar Apr 08 '24 07:04 yswdqz

Can you elaborate? OAP is required to be up and running for those components that need to talk to OAP, in your screenshot, the vm exporter needs to send data to OAP so it needs to wait for OAP's readiness

Maybe we just need VM-monitor feature, and I just want run with "make deploy.docker FEATURE_FLAGS=vm"(not FEATURE_FLAGS=vm,single-node)

yswdqz avatar Apr 08 '24 07:04 yswdqz

Can you elaborate? OAP is required to be up and running for those components that need to talk to OAP, in your screenshot, the vm exporter needs to send data to OAP so it needs to wait for OAP's readiness

Maybe we just need VM-monitor feature, and I just want run with "make deploy.docker FEATURE_FLAGS=vm"(not FEATURE_FLAGS=vm,single-node)

This doesn't make sense as this is a "skywalking" showcase, we don't bother to make it work without skywalking

kezhenxu94 avatar Apr 08 '24 13:04 kezhenxu94

This doesn't make sense as this is a "skywalking" showcase, we don't bother to make it work without skywalking

Sorry, my expression was not very clear. My meaning is, some people (including myself) may want to import data into an external OAP, rather than using a single-node.

yswdqz avatar Apr 09 '24 05:04 yswdqz

This doesn't make sense as this is a "skywalking" showcase, we don't bother to make it work without skywalking

Sorry, my expression was not very clear.

My meaning is, some people (including myself) may want to import data into an external OAP, rather than using a single-node.

That is not showcase. We don't need to consider that.

wu-sheng avatar Apr 09 '24 05:04 wu-sheng