2025-03-21 19:27:33 +00:00
{
"$schema" : "http://json-schema.org/draft-07/schema#" ,
"type" : "object" ,
"title" : "SourcebotConfig" ,
"definitions" : {
"Settings" : {
"type" : "object" ,
"description" : "Defines the globabl settings for Sourcebot." ,
"properties" : {
"maxFileSize" : {
"type" : "number" ,
2025-03-26 01:45:21 +00:00
"description" : "The maximum size of a file (in bytes) to be indexed. Files that exceed this maximum will not be indexed. Defaults to 2MB." ,
"minimum" : 1
2025-03-21 19:27:33 +00:00
} ,
"maxTrigramCount" : {
"type" : "number" ,
2025-03-26 01:45:21 +00:00
"description" : "The maximum number of trigrams per document. Files that exceed this maximum will not be indexed. Default to 20000." ,
"minimum" : 1
2025-03-21 19:27:33 +00:00
} ,
"reindexIntervalMs" : {
"type" : "number" ,
2025-03-26 01:45:21 +00:00
"description" : "The interval (in milliseconds) at which the indexer should re-index all repositories. Defaults to 1 hour." ,
"minimum" : 1
2025-03-21 19:27:33 +00:00
} ,
"resyncConnectionPollingIntervalMs" : {
"type" : "number" ,
2025-03-26 01:45:21 +00:00
"description" : "The polling rate (in milliseconds) at which the db should be checked for connections that need to be re-synced. Defaults to 1 second." ,
"minimum" : 1
2025-03-21 19:27:33 +00:00
} ,
"reindexRepoPollingIntervalMs" : {
"type" : "number" ,
2025-03-26 01:45:21 +00:00
"description" : "The polling rate (in milliseconds) at which the db should be checked for repos that should be re-indexed. Defaults to 1 second." ,
"minimum" : 1
2025-03-21 19:27:33 +00:00
} ,
2025-03-26 01:45:21 +00:00
"maxConnectionSyncJobConcurrency" : {
2025-03-21 19:27:33 +00:00
"type" : "number" ,
2025-03-26 01:45:21 +00:00
"description" : "The number of connection sync jobs to run concurrently. Defaults to 8." ,
"minimum" : 1
2025-03-21 19:27:33 +00:00
} ,
2025-03-26 01:45:21 +00:00
"maxRepoIndexingJobConcurrency" : {
2025-03-21 19:27:33 +00:00
"type" : "number" ,
2025-03-26 01:45:21 +00:00
"description" : "The number of repo indexing jobs to run concurrently. Defaults to 8." ,
"minimum" : 1
2025-03-21 19:27:33 +00:00
} ,
2025-03-26 01:45:21 +00:00
"maxRepoGarbageCollectionJobConcurrency" : {
2025-03-21 19:27:33 +00:00
"type" : "number" ,
2025-03-26 01:45:21 +00:00
"description" : "The number of repo GC jobs to run concurrently. Defaults to 8." ,
"minimum" : 1
2025-03-21 19:27:33 +00:00
} ,
2025-03-26 01:45:21 +00:00
"repoGarbageCollectionGracePeriodMs" : {
2025-03-21 19:27:33 +00:00
"type" : "number" ,
2025-03-26 01:45:21 +00:00
"description" : "The grace period (in milliseconds) for garbage collection. Used to prevent deleting shards while they're being loaded. Defaults to 10 seconds." ,
"minimum" : 1
2025-03-21 19:27:33 +00:00
} ,
"repoIndexTimeoutMs" : {
"type" : "number" ,
2025-03-26 01:45:21 +00:00
"description" : "The timeout (in milliseconds) for a repo indexing to timeout. Defaults to 2 hours." ,
"minimum" : 1
2025-03-21 19:27:33 +00:00
}
} ,
"additionalProperties" : false
}
} ,
"properties" : {
"$schema" : {
"type" : "string"
} ,
"settings" : {
"$ref" : "#/definitions/Settings"
} ,
"connections" : {
"type" : "object" ,
"description" : "Defines a collection of connections from varying code hosts that Sourcebot should sync with. This is only available in single-tenancy mode." ,
"patternProperties" : {
"^[a-zA-Z0-9_-]+$" : {
"$ref" : "./connection.json"
}
} ,
"additionalProperties" : false
}
} ,
"additionalProperties" : false
}