By: Mursel Koseer user 16 Jan 2025 at 3:08 a.m. CST

14 Responses
Mursel Koseer gravatar
Hey, We have an Ubuntu environment where we have set up the cluster manager. The service works fine when the user is logged in, and we can configure everything as needed. However, when the user's session ends and we log back into the Ubuntu server, navigating to localhost:5000 shows that the service has stopped. We then need to restart the service, which is problematic for the key rotation functionality of the cluster manager as it needs to stay online. Is there a feature to keep the service always running? How do you guys do it?

By Mohib Zico Account Admin 16 Jan 2025 at 3:16 a.m. CST

Mohib Zico gravatar
Hi Mursel, >> However, when the user's session ends and we log back into the Ubuntu server, navigating to localhost:5000 shows that the service has stopped. "cluster manager" service you meant? What is the resource of that VM which has Cluster Manager? Any log in `clustermanager.log` ?

By Mursel Koseer user 16 Jan 2025 at 3:27 a.m. CST

Mursel Koseer gravatar
Yes, I meant the Cluster Manager service. The logs don't show any issues because the service stops. Could you clarify what you mean by 'resource'?

By Mobarak Hosen Shakil staff 16 Jan 2025 at 8:01 p.m. CST

Mobarak Hosen Shakil gravatar
Hi, Mursel! resource means the VM capacity, like CPU, RAM, Disk Space, etc. Can you please share the `clustermanager.log`? Regards ~ Shakil

By Mursel Koseer user 17 Jan 2025 at 1:19 a.m. CST

Mursel Koseer gravatar
Hi Shakil, - Ram: mem total: 3044104 kb - Cpu: QEMU Virtual CPU version 2.5+ - Disk space: 34g 12g 21g 37% Clustermgr.log - 2025-01-15 16:50:14,769 - mursel@local - DEBUG - BASIC:done BIND operation, result <True> - 2025-01-15 16:50:14,769 - mursel@local - DEBUG - BASIC:start SEARCH operation via <ldaps://ip.15:1636 - ssl - user: cn=Directory Manager - not lazy - bound - open - <local: ip.14:50635 - remote: ip.15:1636> - tls not started - listening - SyncStrategy - internal decoder> - 2025-01-15 16:50:14,775 - mursel@local - DEBUG - BASIC:done SEARCH operation, result <True> - 2025-01-15 16:50:14,775 - mursel@local - DEBUG - BASIC:start UNBIND operation via <ldaps://ip.15:1636 - ssl - user: cn=Directory Manager - not lazy - bound - open - <local: ip.14:50635 - remote: ip.15:1636> - tls not started - listening - SyncStrategy - internal decoder> - 2025-01-15 16:50:14,780 - mursel@local - DEBUG - BASIC:done UNBIND operation, result <True> - 2025-01-15 16:50:14,781 - mursel@local - INFO - [2025-Jan-15 16:50] 127.0.0.1 GET http /keyrotation/? 200 OK - 2025-01-15 16:50:14,910 - mursel@local - INFO - [2025-Jan-15 16:50] 127.0.0.1 GET http /static/css/AdminLTE.min.css? 304 NOT MODIFIED - 2025-01-15 16:50:14,910 - mursel@local - INFO - [2025-Jan-15 16:50] 127.0.0.1 GET http /static/css/animate.css? 304 NOT MODIFIED - 2025-01-15 16:50:14,915 - mursel@local - INFO - [2025-Jan-15 16:50] 127.0.0.1 GET http /static/css/bootstrap.min.css? 304 NOT MODIFIED - 2025-01-15 16:50:14,921 - mursel@local - INFO - [2025-Jan-15 16:50] 127.0.0.1 GET http /static/css/skin-blue.min.css? 304 NOT MODIFIED - 2025-01-15 16:50:14,922 - mursel@local - INFO - [2025-Jan-15 16:50] 127.0.0.1 GET http /static/js/bootstrap.min.js? 304 NOT MODIFIED - 2025-01-15 16:50:14,926 - mursel@local - INFO - [2025-Jan-15 16:50] 127.0.0.1 GET http /static/css/app.css? 304 NOT MODIFIED - 2025-01-15 16:50:14,932 - mursel@local - INFO - [2025-Jan-15 16:50] 127.0.0.1 GET http /static/js/bootstrap-notify.min.js? 304 NOT MODIFIED - 2025-01-15 16:50:14,934 - mursel@local - INFO - [2025-Jan-15 16:50] 127.0.0.1 GET http /static/js/adminlte.min.js? 304 NOT MODIFIED If you need more information let me know.

By Mohib Zico Account Admin 17 Jan 2025 at 6:45 a.m. CST

Mohib Zico gravatar
>> Ram: mem total: 3044104 kb >> Cpu: QEMU Virtual CPU version 2.5+ - Memory: 3 GB - CPU: 2 cores Do you have liberty to make it 8 GB memory and 4 cores CPU? >> Clustermgr.log Thanks, nothing about startup/stop here. Anything in celery.log ?

By Mursel Koseer user 20 Jan 2025 at 1:16 a.m. CST

Mursel Koseer gravatar
Hey Zico, I will let them know with the provided resources. The celery.log only contains modify operations so nothing about startup/stop. I will keep you updated when we have done the changes.

By Mursel Koseer user 22 Jan 2025 at 4:32 a.m. CST

Mursel Koseer gravatar
Hey Zico, 1) We have retested and observed that the Ubuntu server performs faster. However, we still notice that the cluster manager service stops when the RDP app is closed. Since the cluster manager is installed under a user account, we believe the service stops when the session ends. We are exploring ways to run the service independently of the user session. Do you have any insights on this issue? 2) We have another question. We have multiple environments for Gluu (dev, acc, prod) and want to set up separate cluster managers for each environment. Is it possible to install all of them on a single Ubuntu server, or do we need multiple Ubuntu servers? Thank you

By Mohib Zico Account Admin 22 Jan 2025 at 4:36 a.m. CST

Mohib Zico gravatar
Hello Mursel, >> 1) We have retested and observed that the Ubuntu server performs faster. However, we still notice that the cluster manager service stops when the RDP app is closed. Since the cluster manager is installed under a user account, we believe the service stops when the session ends. We are exploring ways to run the service independently of the user session. Do you have any insights on this issue? I am going to talk to our System Admin on this... will let you know. >> 2) We have another question. We have multiple environments for Gluu (dev, acc, prod) and want to set up separate cluster managers for each environment. Is it possible to install all of them on a single Ubuntu server, or do we need multiple Ubuntu servers? As you need to run clustermanager all the time, so it's better to use separate machines.

By Mursel Koseer user 22 Jan 2025 at 4:42 a.m. CST

Mursel Koseer gravatar
I am going to talk to our System Admin on this... will let you know. **- Okay understood!** As you need to run cluster manager all the time, so it's better to use separate machines. **- Yes the cluster manager needs to run all the time, but why is it better to run it on separate machines if the 3 cluster manager services can run in one server?**

By Mohib Zico Account Admin 22 Jan 2025 at 4:45 a.m. CST

Mohib Zico gravatar
>> but why is it better to run it on separate machines if the 3 cluster manager services can run in one server? We haven't tested this scenario so until we are confident that it will work seamlessly in long run, it will be hard to provide support on such customization.

By Mursel Koseer user 22 Jan 2025 at 5:26 a.m. CST

Mursel Koseer gravatar
Okay understood, you let me know when you got feedback from your System Admin about the user session.

By Mohib Zico Account Admin 17 Feb 2025 at 10:33 p.m. CST

Mohib Zico gravatar
Hello Mursel, We just completed a long test ( 2 weeks ) with default cluster-manager installation as user 'root', we haven't faced any issue. >> 1) We have retested and observed that the Ubuntu server performs faster. However, we still notice that the cluster manager service stops when the RDP app is closed. Since the cluster manager is installed under a user account, we believe the service stops when the session ends. We are exploring ways to run the service independently of the user session. Do you have any insights on this issue? i am not sure if i got it correctly.... why Remote desktop client is here? Also.. you are *not* running cluster-manager app as `root` ?

By Mursel Koseer user 18 Feb 2025 at 12:17 a.m. CST

Mursel Koseer gravatar
Hey Zico, We have found the issue and it was indeed that we didn't ran the cluster manager as "root". After running as "root" we didn't face any issues.

By Mohib Zico Account Admin 18 Feb 2025 at 1:30 a.m. CST

Mohib Zico gravatar
Got it. Thanks for confirmation!