Comments (8)
FYI I'm planning to modify C-raft to add support for the new io_uring
asynchronous file I/O API that was recently added to the Linux kernel. That will likely force me to generalize the code in uv_file.c
a little bit and at that point adding a third system specific backend (e.g. Window or macOS) might be easier. I'm not sure what the timeline of this will be as it's not a priority at the moment, so YMMV.
from dqlite.
libco should already be multiplatform, at least to a certain extent: although I never tested it I see that it has some support for Windows.
For libraft the only bit that is Linux-specific is the asynchronous file I/O used here. I'm currently not planning to add support for other platform, but it shouldn't be too difficult to do so, since the code involved is pretty limited. I'm happy to accept patches in that regard, or you could contact Canonical if you wish to have that done for you.
from dqlite.
It seems like I didn't do my homework well enough. I'll have a look at it. I'll try my best if I can. Thank you for your time and quick reply.
from dqlite.
Happy to help if you need guidance.
from dqlite.
Since io_uring
is Linux-dependent, wouldn't that make things harder for multi-platform support? I mean you are already doing a great job with libuv
in that context. Do you plan to move away from libuv
or just to enhance the I/O features?
from dqlite.
@zbalkan the idea is to decouple the implementation of uv_file.c
from the specific APIs that the underlying OS offers for performing asynchronous file I/O. So the logic in uv_file.c
would only use libuv
APIs (which are cross platform) plus some new raft-internal abstraction that would wrap the underlying OS APIs and whose implementation would be changed at compile time according to the environment that configure
detects. That way if you want to add support for a new OS there would be no need to modify uv_file.c
at all, but just to implement the internal raft wrappers (which would live in something like uv_os_unix.c
, ov_os_windows.c
, etc).
Hope that's clear.
from dqlite.
That's clear indeed. Thanks.
from dqlite.
We've been merging some support for other platforms (BSD/MacOS) and will be happy to keep doing so.
For the client, we've got an issue at #291 now which should similarly not be platform-specific.
from dqlite.
Related Issues (20)
- Moving sqlite3_step and other database operations off the main thread HOT 8
- Expose option to disable/enable raft snapshot compression
- Handle INTERRUPT request HOT 3
- stderr of server threads swallowed during integration tests HOT 2
- Proposal: stop trying to handle OOM HOT 1
- Investigate growing memory usage found by microk8s benchmarking HOT 2
- Consider shipping a tiny "manifest" binary to print information about the dqlite installation
- install instructions don't work HOT 4
- Confusing error message when trying to run a query statement with Exec HOT 1
- Recommended way to perform schema migrations HOT 4
- Raft uv_timer leak when creating and destroying node HOT 1
- Cluster-wide configuration of target voter/standby count
- Idea: pass a socket instead of dqlite_node_set_bind_address HOT 4
- Implement DQLITE_VISIBLE_TO_TESTS properly, or get rid of it HOT 1
- Git layout for v1.15.0 HOT 8
- Write operations that immediately follow write operations sometimes cause a disk I/O-error, followed by loss of leadership and high latency HOT 3
- Support the RETURNING clause HOT 2
- Can we use the unix-excl VFS? HOT 9
- Consider periodically using VACUUM to reduce memory footprint HOT 9
- Not Leader failure response HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dqlite.