You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be great since i love running things as services. But dont wanna edit the init scripts. I would like to be able to set the a flag like direct-io=false or something like that it should be true by default of course :)
If you add this line in your config file, I think it should work.
no-direct-io
I just tried, RethinkDB does start, but I don't get confirmation that it's used.
Well, if it wasn't recognized, it would have crashed, so I guess it's working ^_^
# rethinkdb --config-file /etc/rethinkdb/instances.d/instance1.conf
info: Creating directory /home/wojons/rethinkdb_data
info: Creating a default database for your convenience. (This is because you ran 'rethinkdb' without 'create', 'serve', or '--join', and the directory '/home/wojons/rethinkdb_data' did not already exist.)
info: Running rethinkdb 1.11.3-0ubuntu1~lucid (GCC 4.4.3)...
info: Running on Linux 3.2.0-4-amd64 x86_64
info: Loading data from directory /home/wojons/rethinkdb_data
info: Listening for intracluster connections on port 29015
info: Listening for client driver connections on port 28015
info: Listening for administrative HTTP connections on port 8080
info: Listening on addresses: 127.0.0.1, 127.0.1.1, ::1
info: To fully expose RethinkDB on the network, bind to all addresses
info: by adding `bind=all' to the config file (/etc/rethinkdb/instances.d/instance1.conf).
info: Server ready
It when i had the serve part infront it gave me the following error
The directory 'rethinkdb_data' does not exist, run 'rethinkdb create -d "rethinkdb_data"' and try again.
@neumino that is what i was guessing. The cause of the error was so just adding the = and true and false would fix the issue. but if u wanna just make it no-direct-io thats fine with me just finiding perfomance on nodes that have lots of extra memory run a lot faster with no direct io.
Activity
neumino commentedon Jan 22, 2014
If you add this line in your config file, I think it should work.
I just tried, RethinkDB does start, but I don't get confirmation that it's used.
Well, if it wasn't recognized, it would have crashed, so I guess it's working ^_^
@AtnNn should be able to confirm that.
wojons commentedon Jan 22, 2014
@neumino what version are you running. I feel like i tried this with @danielmewes and it did not like it.
neumino commentedon Jan 22, 2014
I'm currently running
1.11.2on this machine.wojons commentedon Jan 22, 2014
neumino commentedon Jan 22, 2014
Hum, interesting. Maybe it's because I'm using systemd?
What happens if you execute
Do you still get the parse error?
On second thought, I don't see how systemd could work and not init scripts...
wojons commentedon Jan 22, 2014
It when i had the serve part infront it gave me the following error
neumino commentedon Jan 22, 2014
Oh I see, our init scripts doesn't parse lines that don't have a =.
https://github.com/rethinkdb/rethinkdb/blob/next/packaging/assets/init/rethinkdb#L27
wojons commentedon Jan 22, 2014
@neumino that is what i was guessing. The cause of the error was so just adding the = and true and false would fix the issue. but if u wanna just make it no-direct-io thats fine with me just finiding perfomance on nodes that have lots of extra memory run a lot faster with no direct io.
coffeemug commentedon Jan 22, 2014
Ok, assigning to @AtnNn. Putting this in 1.12, but @AtnNn -- feel free to move it out if you've got too much on your plate.
AtnNn commentedon Feb 5, 2014
My patch allows you to put
no-direct-ioin your config file, and the init script will not complain. Writingdirect-io=falseis still an error.It will be released in RethinkDB 1.12