thinkharderdev opened a new issue, #39: URL: https://github.com/apache/arrow-ballista/issues/39
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] (This section helps Arrow developers understand the context and *why* for this feature, in addition to the *what*) The current architecture only support single scheduler deployments. This has two problems I believe: 1. It is not ideal for low-latency interactive queries as the scheduler can potentially take a significant time to restart in the case of failure (especially if the serialized state is large). 2. Query planning itself is not always a trivial mount of work. For instance, when planning a `ParquetExec`, the scheduler may need to read metadata from a large number of parquet files to gather statistics. **Describe the solution you'd like** A clear and concise description of what you want to happen. I would like to see Ballista support multiple schedulers. Essentially I would like to put N schedulers beings a load balancer and have both external clients and the executors send requests to the load balancer. The current implementation is not designed for this as the scheduler state is essentially maintained in memory and only flushed to the state backend for the purposes of recovering from a scheduler restart. I would propose the following high-level changes: 1. Client-side caching, if required, should be encapsulated in the `StateBackendClient` so it can be a backend-specific concern. 2. We should support `redis` as a state backend so we can hopefully avoid the need for client-side cacheing entirely. 3. I think we can avoid the need for distributed locking by refactoring the backend state data structures to avoid the need for locking in the first place. This should mostly be a matter of tracking executor resources and stage task completions with atomic counters. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. We could support only single-scheduler deployments. Alternatively, we can try to support multi-scheduler deployments with etcd. **Additional context** Add any other context or screenshots about the feature request here. Ectd/Redis and multi-scheduler deployments are, strictly speaking, completely separate issues but I did want to raise the question of whether etcd is the right default for non-standalone deployments. Likewise, if we do add support for Redis should we maintain support for both etcd and Redis or standardize on one or the other. I think these questions are highly related, but it makes sense to address them separately then I'm fine with that as well. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org