INNER CODE UNIT · Go

serverOptions

kcp-dev/kcp · cmd/cache-server/main.go:56

	serverOptions := options.NewOptions(*rootDir)
	cmd := &cobra.Command{
		Use:   "cache-server",
		Short: "Runs the cache server for kcp",
		Long: help.Doc(`
            Starts a server that hosts data/resources that are required by shards.
            It serves as a cache helping to reduce the storage that would have to
            be copied onto every shard otherwise.

            The actual group of shards that will use this server should be part of
            the topology. For example, it can be used only by shards that are in
            the same geographical region.

            On a high level, the server exposes two HTTP paths. The first one is
            used by the shards for getting all resources. The second one is used
            by individual shards to push data they wish to be shared.

            There are no limits on the types of data this server hosts. The rule of

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…