Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 804  / 3 Years ago, sun, september 26, 2021, 11:39:53

EDIT: The essence of this question is: Can juju and/or jitsu do service co-location instead of having to use one node per service unit?



Does jitsu have a way to specify more than one particular machine to deploy multiple service units? For instance, I have ceph-mon deployed on three machines, but I want to deploy ceph-osd on the same three machines. As far as I can see, with jitsu I can only specify ONE machine for a particular service.



So, after doing:



jitsu deploy-to 1 --config local.yaml local:ceph-osd


I end up with:



services:
ceph:
charm: local:precise/ceph-91
relations:
mon:
- ceph
units:
ceph/0:
agent-state: pending
machine: 1
public-address: null
ceph/1:
agent-state: pending
machine: 2
public-address: null
ceph/2:
agent-state: pending
machine: 3
public-address: null
ceph-osd:
charm: local:precise/ceph-osd-7
relations: {}
units:
ceph-osd/3:
agent-state: pending
machine: 1
public-address: null
2013-05-06 11:22:09,165 INFO 'status' command finished successfully


Now it appears I have no way of adding ceph-osd service units to machines 2 and 3.



I would like to do something like add-unit and add in the other two machines.



p.s. Can't add it, but I suggest adding the tag "jitsu" to this board.


More From » juju

 Answers
0

Based on the response from jamespage and based on my other findings, I'd have to say the answer to the question is currently no. Let me explain.



I can do



juju deploy ceph -n 3


and juju will setup three nodes with Ceph, machines number 1, 2 and 3. I want to deploy Glance in 3 units across the same three nodes as Ceph. I can't do this. The most I can do is



jitsu deploy-to 1 glance


and Glance will be installed and configured on machine 1 where MySQL also lives. But if I want to scale Glance horizontally, I can't do an add-unit command, because jitsu doesn't currently support it. If I do:



juju add-unit glance


then a whole new node is taken, which is not the desired result, which is service co-location.



I would love to see that feature in jitsu! Specifically, you would be able to do:



jitsu deploy-to 1,2,3 -n 3 glance


and if you wanted to add units to this service, you could do:



jitsu deploy-to 4 add-unit glance


or something similar.


[#31349] Tuesday, September 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rryble

Total Points: 489
Total Questions: 121
Total Answers: 119

Location: Marshall Islands
Member since Mon, May 31, 2021
3 Years ago
;