-
Notifications
You must be signed in to change notification settings - Fork 49
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
How to configure third type of entiry (say Locator) in addition to Server and Driver #2
Comments
Hi, |
Thanks for the response. My Locator and Servers are separate entities and should run in separate jvm. I can provide sufficient server hosts in SERVER_HOSTS config (say SERVER_HOSTS=host1,hostb,hostc), start locator on one of the host and servers on remaining hosts. Is it possible, if yes, then how do i distiguish between these hosts inside the code. The "--nodeNumber" in ignite benchmark is used to count total members in the system i.e. servers + drivers. The cfg.nodes() returns what it was configured. Also, how can i provide per server specific cofiguration. For example i want to start two server so configured it as "SERVER_HOSTS=host1,hostb", now i wan to set different server name to each server in BenchmarkServer.start() method, how this can be acheived. Thanks, |
You need to write additional logic in your if (locatorHosts.contains(getLocalHost()) {
// Start locator
}
else {
// Start server
}
Yardstick starts servers with the same configuration. You can use just environment properties as hostname, ip and etc. |
Thanks. Is Do we have some global data structure shared across all servers and drivers? -rahul |
No, you need to implement the function. See how to get all hostname and ip. link
Yardstick doesn't have distributed data. I can recommend to use Apache Ignite for share data. Ignite has simple API and allow create caches on the fly. You can start driver, server and locator with ignite node and simplify share your data. |
Thanks for the responses. I feel that we should able to distinguish between server (or drivers) which helps us to provide special handeling to specific server instance if required. Thus, i implemented MemberId support in Yardstick, refer pull request #3 . |
I want to benchmark our product using yardstick.
Our product have following entities:
We can configure Server and Client, please let me know how to configure Locator member?
The text was updated successfully, but these errors were encountered: