Skip to content
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

Deploy on multiple Managed Servers #368

Open
augeivv opened this issue Dec 8, 2023 · 7 comments
Open

Deploy on multiple Managed Servers #368

augeivv opened this issue Dec 8, 2023 · 7 comments

Comments

@augeivv
Copy link

augeivv commented Dec 8, 2023

I think the moitoring exporter is great. However, we have a fundamental problem.
However, we would like to deploy it in a classic weblogic domain in which the administration port is activated.
According to the documentation, the REST port must then be specified.
The whole thing also works for a single managed server.
However, if I want to deploy the whole thing on all managed servers, the administration port differs per server.
This means that I would have to adjust the configuration several times per server and then also deploy the application several times.
Is there an easier way to do this, where the port can be determined dynamically or something like that?

Thank you very much

@russgold
Copy link
Member

russgold commented Dec 8, 2023

The REST port only needs to be specified if it is different from the port on which you are contacting the exporter. Under most conditions, it would be the same, so you don't need to specify it.

The most common in which it is not the same is when you have a load balancer in the middle, which will redirect requests to different ports that the one on the load balancer.

@augeivv
Copy link
Author

augeivv commented Dec 12, 2023

@russgold I already understood that at this point. However, we use the administration port in our Weblgic domain. This means that we have the following structure as an example:

  • Managed-Server-1 with port 10001 and the administration port 30001
  • Managed-Server-2 with port 10002 and the administration port 30002
  • ....

The application is accessible under the 10001 port. However, the rest of the API is under 30001.
If I now also want to deploy the exporter on the Managed-Server-2, I have to adjust the configuration and make it available as a second deployment in the domain. And for the Managed-Server-3 as well. And for the fourth ...
I find this situation very unfortunate.
That's why I'm looking for a better solution.

@augeivv
Copy link
Author

augeivv commented Jan 11, 2024

Hello @russgold,
is there any news on this topic yet?

@russgold
Copy link
Member

russgold commented Feb 2, 2024

@augeivv That sounds as though it would need an enhancement to the syntax. Do you have some ideas on what would work? A single configuration would need some way to tell which port is used where.

Do you have an Oracle support person who could look at your application? I don't understand why each server would need its own port numbers.

@augeivv
Copy link
Author

augeivv commented Feb 5, 2024

@russgold
To the first question:
I could imagine that a query of the ServerRuntime could be built into the Monitoring Exporter.
The Monitoring Exporter should use the Administration URL for the query.

This is available in the ServerRuntime under 'getAdministrationURL()'.
https://docs.oracle.com/middleware/12212/wls/WLAPI/weblogic/management/runtime/ServerRuntimeMBean.html#getAdministrationURL--

When the administration port is activated, the operation returns the URL that the server and its clients use for administrative connections.
If this is not active, it returns the default channel URl.

To the second question:
We would like to use the monitoring exporter for our classic WLS installations as well. So not in the Kubernetes world.
There is a weblogic domain with several managed servers installed on a Linux VM.
Each managed server provides its services on its own port. As two managed servers cannot work on the same port.
In addition, the administration port is active in the domain. This means that the rest api of the weblogic is accessible on an administration channel and not on the default channel.

Furthermore, what exactly do you mean by "your application"?

@russgold
Copy link
Member

russgold commented Feb 5, 2024

I meant, how you have set up your servers so that each one needs its own port numbers. My understanding was that one usually used the same port numbers on different servers.

@augeivv
Copy link
Author

augeivv commented Feb 6, 2024

Multiple weblogic server instances can also be run on the same server. Nowhere is it defined that each instance must be run on different servers.
It must only be ensured that they work on different ports so that they can start at all.
I'll look for the exact description in the documentation again. And add it here...

In the domain, a separate listen port can be set for each weblogic instance.
The setting can be found in the Administration Console as follows.
expand Environment and select Servers.
On the Servers page, click the name of the server.
Select Configuration > General.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants