-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from lnikon/feature/grpc-server
Feature/grpc server
- Loading branch information
Showing
54 changed files
with
1,240 additions
and
708 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,136 @@ | ||
{ | ||
"$id": "https://json-schema.hyperjump.io/schema", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$title": "Schema for tinykvpp's JSON config", | ||
"type": "object", | ||
"properties": { | ||
"logging": { | ||
"type": "object", | ||
"properties": { | ||
"loggingLevel": { | ||
"$ref": "#/$defs/loggingLevel" | ||
} | ||
}, | ||
"required": [ | ||
"loggingLevel" | ||
] | ||
}, | ||
"database": { | ||
"type": "object", | ||
"properties": { | ||
"path": { | ||
"type": "string" | ||
"$id": "https://json-schema.hyperjump.io/schema", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$title": "Schema for tinykvpp's JSON config", | ||
"type": "object", | ||
"properties": { | ||
"logging": { | ||
"type": "object", | ||
"properties": { | ||
"loggingLevel": { | ||
"$ref": "#/$defs/loggingLevel" | ||
} | ||
}, | ||
"required": [ | ||
"loggingLevel" | ||
] | ||
}, | ||
"walFilename": { | ||
"type": "string" | ||
"database": { | ||
"type": "object", | ||
"description": "Core database configuration settings", | ||
"properties": { | ||
"path": { | ||
"type": "string", | ||
"description": "Database storage directory path" | ||
}, | ||
"walFilename": { | ||
"type": "string", | ||
"description": "Write-ahead log filename" | ||
}, | ||
"manifestFilenamePrefix": { | ||
"type": "string", | ||
"description": "Prefix for manifest files" | ||
} | ||
}, | ||
"required": [ | ||
"path", | ||
"walFilename", | ||
"manifestFilenamePrefix" | ||
] | ||
}, | ||
"manifestFilenamePrefix": { | ||
"type": "string" | ||
"lsmtree": { | ||
"type": "object", | ||
"properties": { | ||
"memtableFlushThreshold": { | ||
"type": "integer", | ||
"description": "The threshold of bytes at which the memtable should be flushed", | ||
"minimum": 1, | ||
"default": 1024 | ||
}, | ||
"levelZeroCompaction": { | ||
"$ref": "#/$defs/compaction" | ||
}, | ||
"levelNonZeroCompaction": { | ||
"$ref": "#/$defs/compaction" | ||
} | ||
}, | ||
"required": [ | ||
"memtableFlushThreshold", | ||
"maximumLevels", | ||
"levelZeroCompaction", | ||
"levelNonZeroCompaction" | ||
] | ||
}, | ||
"server": { | ||
"type": "object", | ||
"description": "Server configuration settings", | ||
"properties": { | ||
"transport": { | ||
"$ref": "#/$defs/serverTransport" | ||
}, | ||
"host": { | ||
"type": "string", | ||
"description": "Server host address" | ||
}, | ||
"port": { | ||
"type": "integer", | ||
"description": "Server port number", | ||
"minimum": 1024, | ||
"maximum": 65535 | ||
} | ||
}, | ||
"required": [ | ||
"transport", | ||
"host", | ||
"port" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"path", | ||
"walFilename", | ||
"manifestFilenamePrefix" | ||
] | ||
}, | ||
"lsmtree": { | ||
"type": "object", | ||
"properties": { | ||
"memtableFlushThreshold": { | ||
"type": "number" | ||
}, | ||
"maximumLevels": { | ||
"type": "number" | ||
"required": [ | ||
"database", | ||
"lsmtree", | ||
"server" | ||
], | ||
"$defs": { | ||
"serverTransport": { | ||
"type": "string", | ||
"enum": [ | ||
"grpc", | ||
"tcp" | ||
] | ||
}, | ||
"levelZeroCompaction": { | ||
"$ref": "#/$defs/compaction" | ||
"loggingLevel": { | ||
"type": "string", | ||
"enum": [ | ||
"info", | ||
"debug", | ||
"trace", | ||
"off" | ||
] | ||
}, | ||
"levelNonZeroCompaction": { | ||
"$ref": "#/$defs/compaction" | ||
} | ||
}, | ||
"required": [ | ||
"memtableFlushThreshold", | ||
"maximumLevels", | ||
"levelZeroCompaction", | ||
"levelNonZeroCompaction" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"database", | ||
"lsmtree" | ||
], | ||
"$defs": { | ||
"loggingLevel": { | ||
"type": "string", | ||
"enum": [ | ||
"info", | ||
"debug" | ||
] | ||
}, | ||
"compactionStrategy": { | ||
"type": "string", | ||
"enum": [ | ||
"levelled", | ||
"tiered" | ||
] | ||
}, | ||
"compaction": { | ||
"type": "object", | ||
"properties": { | ||
"compactionStrategy": { | ||
"$ref": "#/$defs/compactionStrategy" | ||
"type": "string", | ||
"enum": [ | ||
"levelled", | ||
"tiered" | ||
] | ||
}, | ||
"compactionThreshold": { | ||
"type": "number" | ||
"compaction": { | ||
"type": "object", | ||
"properties": { | ||
"compactionStrategy": { | ||
"$ref": "#/$defs/compactionStrategy" | ||
}, | ||
"compactionThreshold": { | ||
"type": "integer", | ||
"description": "Number of files that trigger compaction", | ||
"minimum": 1 | ||
} | ||
}, | ||
"required": [ | ||
"compactionStrategy", | ||
"compactionThreshold" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"logging,", | ||
"compactionStrategy", | ||
"compactionThreshold" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.