Pete Lorenz
11/14/2023, 5:16 PMTomas Rohrer
11/16/2023, 12:49 PMkubectl edit pvc -n pulsar PersistentVolumeClaim_name
.
In your case, your PersistentVolumeClaim_name
should be pulsar-bookie-ledgers-pulsar-bookie-2
based on your describe
commands's output.
This simple article may be useful if you are struggling with resizing your PVC.
I hope it helps 🤞.Martin Burian
11/16/2023, 3:28 PMPete Lorenz
11/16/2023, 3:29 PMRobert Moucha
11/18/2023, 3:41 PMERROR org.apache.bookkeeper.util.DiskChecker - Space left on device /pulsar/data/bookkeeper/ledgers/current : 0, Used space fraction: 1.0 > threshold 0.95.
means the ledgers volume of one of your bookie servers is full. That should never happen under normal conditions, because GoodData CN doesn't store data in Pulsar for a long time. It's possible that some Pulsar topic contains many messages that are not being picked up by application.
You need to identify which pulsar topic grows.
1. Connect to one of pulsar brokers (e.g. pulsar-broker-0) using bash
shell. kubectl -n pulsar exec -it pulsar-broker-0 -- bash
2. using command bin/pulsar-admin
, discover all available topics:
a. bin/pulsar-admin topics list <<gdcn-namespace>>/<<gdcn-release>>
(replace <<gdcn-namespace>>
with namespace where gooddata-cn chart is installed, typically gooddata-cn
, and replace <<gdcn-release>>
with name of helm release used when GoodData CN chart was installed, typically also gooddata-cn
). So the command should look similar to bin/pulsar-admin topics list gooddata-cn/gooddata-cn
b. The topics list
subcommand will return list of Pulsar topics, that will look like: <persistent://gooddata-cn/gooddata-cn/caches.garbage-collect>
3. For each of these topics, EXCEPT system topic __change_events
, run topics stats
subcommand to see backlog length. The full command will look like bin/pulsar-admin topics stats <persistent://gooddata-cn/gooddata-cn/caches.garbage-collect>
(repeat for every topic).
a. topic stats output is JSON formatted report. Look for backlogSize
top-level key - it should be zero or close to zero. If not, please send us the full output of topics stats
command that has high backlog size.
4. truncate topics with backogSize
>> 0 using subcommand topics truncate
, e.g. bin/pulsar-admin topics truncate <persistent://gooddata-cn/gooddata-cn/caches.garbage-collect>