Skip to content

--no-direct-io in config file #1892

Closed
Closed

Description

@wojons

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 :)

Activity

  1. neumino commented on Jan 22, 2014

    @neumino
    Member

    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 ^_^

    @AtnNn should be able to confirm that.

  2. wojons commented on Jan 22, 2014

    @wojons
    ContributorAuthor

    @neumino what version are you running. I feel like i tried this with @danielmewes and it did not like it.

  3. neumino commented on Jan 22, 2014

    @neumino
    Member

    I'm currently running 1.11.2 on this machine.

  4. wojons commented on Jan 22, 2014

    @wojons
    ContributorAuthor
    /etc/rethinkdb/instances.d/instance1.conf: parse error on line 12:
    no-direct-io
    
  5. neumino commented on Jan 22, 2014

    @neumino
    Member

    Hum, interesting. Maybe it's because I'm using systemd?

    What happens if you execute

    rethinkdb serve --config-file /path/to/conf/default.conf --pid-file /path/to/pid/test.pid
    

    Do you still get the parse error?

    On second thought, I don't see how systemd could work and not init scripts...

  6. wojons commented on Jan 22, 2014

    @wojons
    ContributorAuthor
    # 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.
    
    
  7. neumino commented on Jan 22, 2014

    @neumino
    Member
  8. wojons commented on Jan 22, 2014

    @wojons
    ContributorAuthor

    @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.

  9. ghost assigned on Jan 22, 2014
  10. coffeemug commented on Jan 22, 2014

    @coffeemug
    Contributor

    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.

  11. AtnNn commented on Feb 5, 2014

    @AtnNn
    Member

    My patch allows you to put no-direct-io in your config file, and the init script will not complain. Writing direct-io=false is still an error.

    It will be released in RethinkDB 1.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions