pulsar-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Pulsar Slack" <apache.pulsar.sl...@gmail.com>
Subject Slack digest for #general - 2019-01-27
Date Sun, 27 Jan 2019 09:11:02 GMT
2019-01-26 13:14:16 UTC - Yuvaraj Loganathan: When  JsonSchema  is Used to produce messages
,  only the values of json fields are stored as part of message or the whole message with
all the keys and values are stored ?  Basically If  JSONSchema is used , will the amount of
storage used  will be reduced or not ?
----
2019-01-26 14:11:18 UTC - Yuvaraj Loganathan: pulsar-admin namespaces set-retention --size
-1  --time -1 public/default The response received is
```pulsar-admin namespaces get-retention public/default
{
  "retentionTimeInMinutes" : -1,
  "retentionSizeInMB" : 0
}
```
----
2019-01-26 14:14:35 UTC - Yuvaraj Loganathan: retentionSizeInMB always show 0 even though
it is set -1. Is it a bug ?
----
2019-01-26 15:06:16 UTC - Matteo Merli: Just tried and seems to work for me:

```
$ ./bin/pulsar-admin namespaces set-retention public/default -s -1 -t -1

$ ./bin/pulsar-admin namespaces get-retention public/default
{
  "retentionTimeInMinutes" : -1,
  "retentionSizeInMB" : -1
}
```
----
2019-01-26 15:09:15 UTC - Matteo Merli: With JSON schema the objects are serialized into standard
JSON, that is with keys and values.

Typically, if you have a decent amount of batching of the messages and you enable compression
in the producer, that won’t be a big size overhead.

Though, if you want to have compact serialization, you should look into using the Avro schema
instead.
----
2019-01-26 15:10:28 UTC - Yuvaraj Loganathan: @Matteo Merli Thanks :thumbsup:
----
2019-01-26 15:13:06 UTC - Yuvaraj Loganathan: I am using pulsar 2.2.0 and still able to reproduce.
Will upgrade to 2.2.1 and update you. Thanks for the help @Matteo Merli
+1 : Matteo Merli
----
Mime
View raw message