Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
30
rated 0 times [  30] [ 0]  / answers: 1 / hits: 11651  / 2 Years ago, sat, february 26, 2022, 1:12:02

What is a Juju Charm? What is it used for?


More From » juju

 Answers
4

From juju package description:




Juju is a next generation service orchestration framework. It has been
likened to APT for the cloud. With Juju, different authors are able to
create service formulas, called charms, independently, and make those
services coordinate their communication and configuration through a
simple protocol.




So, a charm tells juju how to manage a service. Examples of a service may be "mysql database" or "wordpress". After a service is deployed, juju can define relations between them ("worpress needs mysql") and expose some services to the outside world.



It's a set of scripts that can be written in any language that fire off hooks based on certain things. So the "install hook" is the first thing that will be run on an instance when juju installs on it, and we can do hooks to other services.



The charm usually includes all the intelligence needed to scale the service horizontally. So, for example, the charm for clustered MySQL would know how to add machines to the cluster, preserving the relationships with all the services depending on that service. This lets you build out, and scale up and down, the service you want, especially on the cloud.



Juju can also be used together with Orchestra for physical deployments. So, for example, if you have a charm for Hadoop, you can use that to install Hadoop across a few thousand servers with Orchestra.



You can get some more info from Juju user tutorial


[#41987] Monday, February 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aslity

Total Points: 336
Total Questions: 133
Total Answers: 98

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
aslity questions
Sat, Apr 22, 23, 23:22, 1 Year ago
Wed, Oct 27, 21, 06:19, 3 Years ago
Sun, Oct 3, 21, 05:33, 3 Years ago
Fri, Jul 1, 22, 17:16, 2 Years ago
;