-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor!(apis): add `WALProvider` and `FileStorage` Signed-off-by: zyy17 <[email protected]> * refactor: make some fields optional * test: add standalone wal e2e --------- Signed-off-by: zyy17 <[email protected]>
- Loading branch information
Showing
46 changed files
with
2,383 additions
and
979 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// Copyright 2024 Greptime Team | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package v1alpha1 | ||
|
||
// The following constants are the default values for the GreptimeDBCluster and GreptimeDBStandalone. | ||
const ( | ||
// DefaultVersion is the default version of the GreptimeDB. | ||
DefaultVersion = "Unknown" | ||
|
||
// DefautlHealthEndpoint is the default health endpoint for the liveness probe. | ||
DefautlHealthEndpoint = "/health" | ||
|
||
// DefaultHTTPPort is the default HTTP port for the GreptimeDB. | ||
DefaultHTTPPort int32 = 4000 | ||
|
||
// DefaultRPCPort is the default RPC port for the GreptimeDB. | ||
DefaultRPCPort int32 = 4001 | ||
|
||
// DefaultMySQLPort is the default MySQL port for the GreptimeDB. | ||
DefaultMySQLPort int32 = 4002 | ||
|
||
// DefaultPostgreSQLPort is the default PostgreSQL port for the GreptimeDB. | ||
DefaultPostgreSQLPort int32 = 4003 | ||
|
||
// DefaultMetaRPCPort is the default Meta RPC port for the GreptimeDB. | ||
DefaultMetaRPCPort int32 = 3002 | ||
|
||
// DefaultReplicas is the default number of replicas for components of the GreptimeDB cluster. | ||
DefaultReplicas = 1 | ||
|
||
// DefaultDataSize is the default size of the data when using the file storage. | ||
DefaultDataSize = "10Gi" | ||
|
||
// DefaultDataHome is the default directory for the data. | ||
DefaultDataHome = "/data/greptimedb" | ||
|
||
// DefaultDatanodeFileStorageName is the default file storage name for the datanode. | ||
DefaultDatanodeFileStorageName = "datanode" | ||
|
||
// DefaultStorageRetainPolicyType is the default storage retain policy type. | ||
DefaultStorageRetainPolicyType = StorageRetainPolicyTypeRetain | ||
|
||
// DefaultInitializerImage is the default image for the GreptimeDB initializer. | ||
DefaultInitializerImage = "greptime/greptimedb-initializer:latest" | ||
) | ||
|
||
// The following constants are the constant configuration for the GreptimeDBCluster and GreptimeDBStandalone. | ||
const ( | ||
// TLSCrtSecretKey is the key for the TLS certificate in the secret. | ||
TLSCrtSecretKey = "tls.crt" | ||
|
||
// TLSKeySecretKey is the key for the TLS key in the secret. | ||
TLSKeySecretKey = "tls.key" | ||
|
||
// AccessKeyIDSecretKey is the key for the access key ID in the secret. | ||
AccessKeyIDSecretKey = "access-key-id" | ||
|
||
// SecretAccessKeySecretKey is the key for the secret access key in the secret. | ||
SecretAccessKeySecretKey = "secret-access-key" | ||
|
||
// ServiceAccountKey is the key for the service account in the secret. | ||
ServiceAccountKey = "service-account-key" | ||
) |
Oops, something went wrong.