You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/gitbase/command/server.go
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ type Server struct {
47
47
Portint`short:"p" long:"port" default:"3306" description:"Port where the server is going to listen"`
48
48
Userstring`short:"u" long:"user" default:"root" description:"User name used for connection"`
49
49
Passwordstring`short:"P" long:"password" default:"" description:"Password used for connection"`
50
-
ConnTimeouttime.Duration`short:"t" long:"timeout" env:"GITBASE_CONNECTION_TIMEOUT" description:"Timeout used for connections"`
50
+
ConnTimeoutint`short:"t" long:"timeout" env:"GITBASE_CONNECTION_TIMEOUT" description:"Timeout in seconds used for connections"`
51
51
IndexDirstring`short:"i" long:"index" default:"/var/lib/gitbase/index" description:"Directory where the gitbase indexes information will be persisted." env:"GITBASE_INDEX_DIR"`
52
52
CacheSize cache.FileSize`long:"cache" default:"512" description:"Object cache size in megabytes" env:"GITBASE_CACHESIZE_MB"`
53
53
Parallelismuint`long:"parallelism" description:"Maximum number of parallel threads per table. By default, it's the number of CPU cores. 0 means default, 1 means disabled."`
Copy file name to clipboardExpand all lines: docs/using-gitbase/configuration.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
|`GITBASE_LANGUAGE_CACHE_SIZE`| size of the cache for the `language` UDF. The size is the maximum number of elements kept in the cache, 10000 by default |
15
15
|`GITBASE_UAST_CACHE_SIZE`| size of the cache for the `uast` and `uast_mode` UDFs. The size is the maximum number of elements kept in the cache, 10000 by default |
16
16
|`GITBASE_CACHESIZE_MB`| size of the cache for git objects specified as MB |
17
-
|`GITBASE_CONNECTION_TIMEOUT`| timeout used for client connections on write and reads. No timeout by default. |
17
+
|`GITBASE_CONNECTION_TIMEOUT`| timeout in seconds used for client connections on write and reads. No timeout by default. |
18
18
19
19
### Jaeger tracing variables
20
20
@@ -75,7 +75,7 @@ Help Options:
75
75
-p, --port= Port where the server is going to listen (default: 3306)
76
76
-u, --user= User name used for connection (default: root)
77
77
-P, --password= Password used for connection
78
-
-t, --timeout= Timeout used for connections [$GITBASE_CONNECTION_TIMEOUT]
78
+
-t, --timeout= Timeout in seconds used for connections [$GITBASE_CONNECTION_TIMEOUT]
79
79
-i, --index= Directory where the gitbase indexes information will be persisted. (default:
80
80
/var/lib/gitbase/index) [$GITBASE_INDEX_DIR]
81
81
--cache= Object cache size in megabytes (default: 512) [$GITBASE_CACHESIZE_MB]
0 commit comments