question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[RFC] Support easy-to-use Storage in Multi-process on the single server.

See original GitHub issue

Motivation

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:

  1. We will not do anything for it
  2. Check if the problem in SQLite ( https://github.com/optuna/optuna/issues/820 ) can be solved, and implement and provide it if possible.
  3. Implemented and provided within the Optuna module, such as https://github.com/optuna/optuna/pull/2759
  4. 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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
keisuke-umezawacommented, Oct 12, 2021

@MaksimEkin Thank you for the comment! We have just published Optuna-V3-Roadmap and this issue is on it. We will soon resolve it.

0reactions
keisuke-umezawacommented, Dec 2, 2021

Yes!

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.

If we want to do something for it, we will create another issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found