Skip to content

Commit

Permalink
Issue 1288: Provide documentation for running BookKeeper auto-recovery (
Browse files Browse the repository at this point in the history
apache#2186)

* Issue 1288: Provide documentation for running BookKeeper auto-recovery

 ### Motivation

Fixes apache#1288. We mentioned auto-recovery in DCOS deployment. but we don't have any instructions to run auto-recovery in bare-mental deployment.

 ### Changes

Update the documentation in bare-mental deployment.

* Enable autorecovery for ansible
  • Loading branch information
sijie authored and merlimat committed Jul 18, 2018
1 parent f0024d2 commit fd7b32c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/terraform-ansible/templates/bookkeeper.conf
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ rereplicationEntryBatchSize=5000
# openLedgerRereplicationGracePeriod=30

# Whether the bookie itself can start auto-recovery service also or not
# autoRecoveryDaemonEnabled=false
autoRecoveryDaemonEnabled=true

# How long to wait, in seconds, before starting auto recovery of a lost bookie
# lostBookieRecoveryDelay=0
Expand Down
4 changes: 4 additions & 0 deletions site/docs/latest/deployment/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ $ bin/bookkeeper shell bookiesanity

This will create an ephemeral BookKeeper {% popover ledger %} on the local bookie, write a few entries, read them back, and finally delete the ledger.

Starting from Pulsar 2.1 release, Bookies start [AutoRecovery](http://bookkeeper.apache.org/docs/latest/admin/autorecovery/) daemons by default. Those AutoRecovery daemons will monitor the healthy of the bookkeeper cluster and automatically re-replicate entries for those under-replicated ledgers.
Since `AutoRecovery` deamons are stateless processes, if you would like to run `AutoRecovery` as a separate service, you can also disable `AutoRecovery` on bookies by setting `autoRecoveryDaemonEnabled` to `false` in your `bookkeeper.conf` file. And you can follow the instructions in
[bookkeeper documentation](http://bookkeeper.apache.org/docs/latest/admin/autorecovery/) to run `AutoRecovery` as separate processes.

## Deploying Pulsar brokers

Pulsar {% popover brokers %} are the last thing you need to deploy in your Pulsar cluster. Brokers handle Pulsar messages and provide Pulsar's administrative interface. We recommend running **3 brokers**, one for each machine that's already running a BookKeeper bookie.
Expand Down

0 comments on commit fd7b32c

Please sign in to comment.