Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

How to achieve distributed? #62

Open
carr123 opened this issue Jul 18, 2018 · 2 comments
Open

How to achieve distributed? #62

carr123 opened this issue Jul 18, 2018 · 2 comments
Labels

Comments

@carr123
Copy link

carr123 commented Jul 18, 2018

看特征介绍里面说支持分布式。
riot哪些地方支持分布式,如何分布式的, 怎么使用分布式特性?

谢谢!

@vcaesar
Copy link
Member

vcaesar commented Jul 18, 2018

Please see the example, you can also implement it yourself, and please speak English.

@vcaesar vcaesar changed the title 怎么实现分布式 How to achieve distributed? Jul 18, 2018
@bobheadxi
Copy link

Hi @vcaesar , I've taken a few looks through the example and am still a little confused about how to proceed. For example:

	var e = &riot.Engine{}
	var r = types.EngineOpts{}
	e.Init(r)

and then set up the cluster?

import cluster "github.com/go-ego/riot/net/grpc"

// ...

		cluster.InitEngine(com.Config{
			Engine: com.Engine{
				StoreEngine: e.engineOpts.StoreEngine,
				StoreFolder: e.engineOpts.StoreFolder,
			},
			Rpc: com.Rpc{
				GrpcPort: []string{}, // ??
				DistPort: []string{}, // ??
				Port:     c.Port,
			},
		})
		go cluster.InitGrpc(c.Port)

thanks in advance!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants