Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Other configuration formats are open for discussion throughout the IEP finalization.

Keys order restriction

Both HOCON and JSON formats don't preserve keys order when parsed, it's a part of the specification. So it's proposed to have extra syntax for elements that require strict order:

Code Block
firstline1
titleHOCON keys order
// Default syntax.
root.namedList {
  key1 { value = val1 },
  key2 { value = val2 }
}
// Specific syntax for when order must be preserved.
root.namedList = [
  { elementName = key1, value = val1 },
  { elementName = key2, value = val2 }
]

Global and local properties

...

Global and local properties are naturally stored in different configuration trees, for example cluster and node respectively:

...

languagetext
titleGlobal tree

...


Code Block
languagetext
titleLocal tree
node.rebalance.threads = 4

...