New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Standalone User Event Dev mode #4680
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
--dev-mode Developer mode speeds up the startup by | ||
disabling preflight checks and avoiding | ||
explicit pulls. | ||
--dev-user-events-port <arg> Specify the port for the user-event |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to have optional and default to 9095? If user-events is run with an IDE, it will start on this port by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to support that but scallop arg parser does not support it. If I specify --dev-user-events-port
then need to provide an explicit value otherwise it gives an error like below
[openwhisk] Error: Bad arguments for option 'dev-user-events-port': '' - you should provide exactly one argument for this option
b2cf2ca
to
6eb061d
Compare
Codecov Report
@@ Coverage Diff @@
## master #4680 +/- ##
==========================================
- Coverage 82.95% 78.26% -4.69%
==========================================
Files 194 194
Lines 8728 8728
Branches 607 607
==========================================
- Hits 7240 6831 -409
- Misses 1488 1897 +409
Continue to review full report at Codecov.
|
core/standalone/src/main/scala/org/apache/openwhisk/standalone/StandaloneOpenWhisk.scala
Outdated
Show resolved
Hide resolved
6eb061d
to
248d5c9
Compare
Co-Authored-By: rodric rabbah <rodric@gmail.com>
* Add user event dev mode Co-Authored-By: rodric rabbah <rodric@gmail.com>
With #4656 support was added in standalone mode to launch the User Event service along with required Prometheus and Grafana service. This PR adds support for reusing an existing user-event service (say running with IDE) for faster local developement
Description
To enable fast local development of user-event service the Standalone OpenWhisk now support connecting to an existing running service instead of launching a new one via Docker
First launch the standalone server with Kafka and pass the port where user-event service would be running (9095 by default)
Then launch the
org.apache.openwhisk.core.monitoring.metrics.Main
via IDE with env set toKAFKA_HOSTS=localhost:9092
After this one can do normal action invocation and see metrics appear in Grafana
Related issue and scope
My changes affect the following components
Types of changes
Checklist: