Hi,
When I tried to save large string in one leaf, I found that ConfD use large memory.
I’ve got the following yang model:
container demo {
leaf large-string {type string;}
}
and this config large.xml:
<config xmlns="http://tail-f.com/ns/config/1.0">
<demo>
<large-string>
aaaaaa.....aaa
.... (up to 30 MB characters)
</large-string>
</demo>
vm(config)# load merge large.xml
Loading.
34.24 MiB parsed in 5.84 sec (5.86 MiB/sec)
When commited this config, I found that ConfD had used up to 5G memory, and also cost much time to process this commit.
The same behavior when deleted this large leaf.
Why ConfD uses so much memory, is there any limit of leaf size?
PS:
The confd version is 6.7.3.