---
title: Charmhub | Deploy Rolling Ops Library and Example Charm using Charmhub - The
  Open Operator Collection
description: Deploy the latest version of Rolling Ops Library and Example Charm on
  any cloud. Sample charm and re-usable library.
url: https://charmhub.io/rolling-ops
---

# Rolling Ops Library and Example Charm

[Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")

* [Canonical](https://charmhub.io/publisher/data-platform "View all packages from Canonical")

Platform:

22.04

stable 5

```
juju deploy rolling-ops
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Relevant links

* [Homepage](https://charmhub.io/rolling-ops)
* [Contact](mailto:Canonical Data Platform <data-platform@lists.launchpad.net>)

---

#### Contacts

##### Maintainers

+ [Canonical Data Platform](mailto:data-platform@lists.launchpad.net)

* [Submit a bug](https://github.com/canonical/charm-rolling-ops/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# Rolling Ops Example App

This is a charm containing the [Rolling Ops library](https://charmhub.io/rolling-ops/libraries/rollingops), along with an example charm implementation.

Rolling Ops Example App is the workload-less charm. It can be deployed and used in both K8s and VM installations.

Just deploy and request rolling restarts:

```
# Deploy
juju deploy rolling-ops -n 5
juju wait-for application rolling-ops

# Request rolling restarts
for i in $(sed 0 4); do
  juju run --background=true rolling-ops/$i restart delay=10
done

# Watch the rolling restarts in progress
juju status --watch 1s
```

As a results, each unit will wait for the lock release from the peer:

## [Limitations (LIBAPI=0, LIBPATCH=6):](https://charmhub.io/rolling-ops#p-31178-limitations-libapi0-libpatch6)

* Lock is being release on each event deffering (avoid deffering callback events).
* Order of events/restarts is not guaranteed.
* NOTE: The restart event will be executed on the requested unit only!

---

[Help improve this document in the forum](https://discourse.charmhub.io/t/rolling-ops-example-app-overview/13939) ([guidelines](https://discourse.charmhub.io/t/how-to-write-docs-our-documentation-guidelines-for-contributors/1245)). Last updated 2 years ago.
