Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More guidances in need #830

Open
godlockin opened this issue Sep 29, 2021 · 3 comments
Open

More guidances in need #830

godlockin opened this issue Sep 29, 2021 · 3 comments

Comments

@godlockin
Copy link

godlockin commented Sep 29, 2021

Hi folks,

I want to say, your were doing a great job on migrating/creating a full-text search engine by rust, maybe it will take a piece of cake from the ES.

I cloned the project, compiled and did some tests based on the requests in requests.http and others, Toshi works well and its operations were quite similar with ES which means a lot for me.

env: Mac
rustc: 1.55.0
branch: master

But, unfortunately, I got some blocks on my further research:

  1. how to config & deploy multiple instance in a single cloud instance? I can't find the guidance on the config & deploys through. Do I need to copy the execution file toshi along with the config folder to another path? Do I need to keep the hierarchical structure of the folders?
  2. what are the differences among these config files, config.toml config-bench.toml config-rpc.toml, each of them contains the similar content in master branch, which config file do I need in which scenario?
  3. do we have other way to do operations in Toshi other than the restful api? e.g. some rust (or maybe other language) sdk or some?
@godlockin
Copy link
Author

I've tried to cp the toshi from target/release and the config.toml to workdir

❯ exa -T
.
├── config
│  └── config.toml
└── toshi

but the cmd can't start the local instance
❯ ./toshi Error: IOError(Os { code: 2, kind: NotFound, message: "No such file or directory" })

@hntd187
Copy link
Member

hntd187 commented Sep 30, 2021

by default toshi will look for a config in config/config.toml if you are having trouble with paths you can also provide --config on the command line when running.

@godlockin
Copy link
Author

well, what is the difference / usages for the 3 config files? config.toml config-bench.toml config-rpc.toml

do we have guidance on how to setup a distribute cluster with several nodes (maybe each has different role)?

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

No branches or pull requests

2 participants