[RFC] Support easy-to-use Storage in Multi-process on the single server.
See original GitHub issueMotivation
In the current implementation, there is no option to run Optuna in multi process without setup such as RDB. There is a need for a function that can be executed in a multi process without any special setup on the single server.
Note
For the case of Multi-process on the multiple severs, some users want to run distributed optimization without RDB setting. That issue will be addressed in another issue if the demand is high.
Description
We will select a solution from the follows:
- We will not do anything for it
- Check if the problem in SQLite ( https://github.com/optuna/optuna/issues/820 ) can be solved, and implement and provide it if possible.
- Implemented and provided within the Optuna module, such as https://github.com/optuna/optuna/pull/2759
- Implemented and provided using 3rd party module such as Dask like https://github.com/optuna/optuna/pull/2023
The solution will be selected from the following viewpoints, and the scope of change (e.g. whether a major release is required or not) will also be investigated.
- Usability
- Demand for the functionality
- Quality of the functionality
- Environment / conditions that can provide the functionality
- Implementation / maintenance cost
TODOs
- Select a solution for multiprocess in-memory storage
- Implement it
- At first, we try to resolve this issue by
2: Check if the problem in SQLite can be solved, and implement and provide it if possible.
- If not, we will try to resolve this issue by others.
- At first, we try to resolve this issue by
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
multiprocessing.shared_memory — Shared memory for direct ...
Provides a mutable list-like object where all values stored within are stored in a shared memory block. This constrains storable values to only...
Read more >How to Use the Multiprocessing Package in Python
Server Process: Manager() supports a variety of data types in comparison with shared memory; Processes can share a single manager on different ...
Read more >RFC 2039 - Applicability of Standards Track MIBs to ... - faqs.org
Requirements for management of a World Wide Web (WWW) server are presented. The applicable existing standards track MIBs are then examined.
Read more >[RFC] TorchStore - A Shared-Memory Tensor Store #64932
Feature TorchStore is a key-value store that holds ATen tensors in shared memory so that they can be accessed across process boundaries ...
Read more >Kafka 1.1 Documentation
Kafka is run as a cluster on one or more servers that can span multiple datacenters ... Kafka's support for very large stored...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@MaksimEkin Thank you for the comment! We have just published Optuna-V3-Roadmap and this issue is on it. We will soon resolve it.
Yes!
If we want to do something for it, we will create another issue.