-
Notifications
You must be signed in to change notification settings - Fork 671
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cacheservice entrypoint + some clean up (#129)
* add placeholder migrations to successfully deploy cacheservice Signed-off-by: Paul Dittamo <[email protected]> * add persistent flags for cache service * clean up Signed-off-by: Paul Dittamo <[email protected]> * clean up - add sample cache service config Signed-off-by: Paul Dittamo <[email protected]> * add cache service otel trace for local builds Signed-off-by: Paul Dittamo <[email protected]> * update cacheservice section key Signed-off-by: Paul Dittamo <[email protected]> --------- Signed-off-by: Paul Dittamo <[email protected]>
- Loading branch information
Showing
6 changed files
with
89 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# This is a sample configuration file. | ||
# Real configuration when running inside K8s (local or otherwise) lives in a ConfigMap | ||
# Look in the artifacts directory in the flyte repo for what's actually run | ||
logger: | ||
level: 5 | ||
cache-server: | ||
grpcPort: 8091 | ||
httpPort: 8090 | ||
grpcServerReflection: true | ||
cacheservice: | ||
storage-prefix: "cached_outputs" | ||
metrics-scope: "cacheservice" | ||
profiler-port: 10254 | ||
heartbeat-grace-period-multiplier: 3 | ||
max-reservation-heartbeat: 10s | ||
storage: | ||
connection: | ||
access-key: minio | ||
auth-type: accesskey | ||
disable-ssl: true | ||
endpoint: http://localhost:9000 | ||
region: my-region-here | ||
secret-key: miniostorage | ||
cache: | ||
max_size_mbs: 10 | ||
target_gc_percent: 100 | ||
container: my-container | ||
type: minio |
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,24 @@ | ||
package entrypoints | ||
|
||
import ( | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var parentMigrateCmd = &cobra.Command{ | ||
Use: "migrate", | ||
Short: "This command controls migration behavior for the Flyte cacheservice database. Please choose a subcommand.", | ||
} | ||
|
||
// This runs all the migrations. This is a placeholder for now as cache service does not have any migrations | ||
var migrateCmd = &cobra.Command{ | ||
Use: "run", | ||
Short: "This command will run all the migrations for the database", | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
return nil | ||
}, | ||
} | ||
|
||
func init() { | ||
RootCmd.AddCommand(parentMigrateCmd) | ||
parentMigrateCmd.AddCommand(migrateCmd) | ||
} |
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