Comments (13)
IMO, hawtio should be Fuse/Karaf agnostic and the info could be obtained from some io.hawt
MBean. If hawtio is running not on Karaf or doesn't have access to io.hawt
MBeans, it could check other MBeans too - but ideally it should not expect that Karaf MBean has something that's only available in Fuse version of Karaf...
from hawtio-integration.
@jamesnetherton @astefanutti
This issue seems important. I think we should prioritize it and see who can work on it.
from hawtio-integration.
What do we mean by 'old way'? If you're not running in the cloud, presumably instance
is the primary means of managing Karaf instances. instance
is not officially supported by Fuse Karaf but there's nothing stopping Karaf community users from using it.
We should consider removing the server tab IMO. We don't have equivalent pages for the other runtimes. Most of the info on that page could be looked up from the JMX tree.
from hawtio-integration.
TBH it's secondhand knowledge for me.
@ffang @grgrzybek Can you please explain why the instance
feature is not recommended any more for Karaf?
from hawtio-integration.
@tadayosi that's fragile question ;)
when you run fuse-karaf (or plain karaf) you actually have one instance. But when we started doing Fuse 7 standalone, people were complaining that instance:create child
started a child which immediately failed because undertow was reusing the same port. Of course you can go explicitly to this child and reconfigure it, but there was no command support for that (like there was with Fuse6/Fabric8 profiles). Patching was working fine, but the lack of professional configuration lead to decision to blacklist this feature.
Of course it turned out that when there's no such feature, we get rid of some important (for hawtio) MBean, so we have to bring it back.
from hawtio-integration.
OK, so to wrap up, instance
is not a recommended way to manage instances on OpenShift/Kubernetes but is still usable standalone. (I think we still recommend Ansible for managing clusters for Fuse standalone though.)
To me, not being recommended on OpenShift/Kubernetes alone is a good reason not to rely on the feature. Currently, the only reason we have to have the instance
feature in Karaf OpenShift images is Hawtio requiring it (see https://issues.jboss.org/browse/ENTESB-8098).
@jamesnetherton Actually, Hawtio 1.x on WildFly/JBoss EAP used to have JBoss > Server tab, which was somehow omitted in 2.x. I personally find this tab handy for checking the server runtime versions.
from hawtio-integration.
What are we doing about it, then? What's the actionable task?
from hawtio-integration.
I think we just need to aggregate the info for the server page from different MBeans. Once we've done that we could blacklist the instance
feature in fuse-karaf again.
from hawtio-integration.
OK, got it. Let's find out what MBeans can provide the same information and update the issue description.
from hawtio-integration.
We can use the Karaf config MBean to get OSGi configs for org.apache.karaf.shell
& org.apache.karaf.management
to display:
- SSH host & port
- RMI registry port
- RMI server port
The Karaf system MBean has attributes for:
- Framework
- Name (Maybe we use this to infer 'Is root'? E.g if name == 'root')
- Start Level
- Version
We could use the system MBean getProperty operation to retrieve property 'karaf.home' for:
- Location
PID can be parsed out of the Name
attribute of the java.lang.Runtime
MBean.
Not sure what to do with 'State'. Maybe we remove this as it's related to the instance stuff that we're removing.
from hawtio-integration.
@tadayosi do you think this issue is still relevant if Hawtio stops supporting future versions of Karaf?
from hawtio-integration.
Considering Karaf support on OpenShift will be discontinued soon it should be outdated as well. Iโm just not sure yet if the community will want Karaf support for Hawtio.next.
from hawtio-integration.
This issue has been automatically marked as stale due to a year of inactivity.
It will be closed if no further activity occurs within 14 days.
If you think thatโs incorrect or the issue should never stale, please simply write any comment.
Thanks for your contributions!
from hawtio-integration.
Related Issues (20)
- Add support for HTML formatting in JMX operation result
- Complex objects are not properly displayed in attributes HOT 4
- RBAC - does not integrate well with Artemis' ArtemisJMXSecurity
- Long rounding issue HOT 5
- 404 for img/icons/jvm/java-logo.svg
- Quartz: jobs without a trigger are not visible in GUI HOT 1
- Improvement to the JVM discovery tab HOT 2
- Docs for diagnostics plugin must be updated for Java 11
- Apache Camel version is really old in the plugin: 2.24.1! Any maintainer here? Any support for new contributors like me? HOT 3
- Start hawtio-integration v5 with Camel 3 support
- Upgrading to "io.hawt:hawtio-springboot:2.14.2" causes java.lang.ClassNotFoundException: io.micrometer.core.instrument.binder.system.DiskSpaceMetrics HOT 2
- Thread Dump for all threads
- ThreadDump for all threads HOT 10
- Upgrade to Camel 3.18.2 HOT 1
- Use camel 3 icon HOT 2
- Camel Route diagram enhancements HOT 1
- Upgrade to Camel 3.19.0 HOT 1
- Upgrade to Camel 3.20 HOT 1
- Upgrade to Camel 3.20.1 HOT 1
- Upgrade to Jolokia 1.7.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hawtio-integration.