Unverified Commit 2a794c56 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

Hostname-suffix can now be passed as cli argument

parent 57da4a54
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -129,9 +129,6 @@ Metadata and actual data will be stored at the `<fs_data_path>`. The path where
Run the application with the preload library: `LD_PRELOAD=<path>/build/lib/libiointer.so ./application`. In the case of
an MPI application use the `{mpirun, mpiexec} -x` argument.
 
Please consult `configure_public.hpp` for log locations and verbosity, etc. `include/configure.hpp` contains file system
specific configurations normal user should not be needed to modify.

### Logging
To enable logging the following environment variables are used:
ADAFS_PRELOAD_LOG_PATH="<path/to/file>" to set the path to the logging file of the client library.

configure_public.hpp

deleted100644 → 0
+0 −14
Original line number Diff line number Diff line

/**
 * Attention: This whole configfile is not in a final form! This will eventually be a plaintext config file.
 */

#ifndef FS_CONFIGURE_PUBLIC_H
#define FS_CONFIGURE_PUBLIC_H

// Set a hostname suffix when a connection is built. E.g., "-ib" to use Infiniband
#define HOSTNAME_SUFFIX ""
//#define MARGODIAG // enables diagnostics of margo (printed after shutting down


#endif //FS_CONFIGURE_PUBLIC_H
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ struct FsConfig {
    std::unordered_map<std::string, std::string> endpoints;
    uint64_t host_id; // my host number
    size_t host_size;
    std::string hostname_suffix;
    unsigned int rpc_port;
    std::string lookup_file;
};
+5 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ private:
    uint64_t host_id_; // my host number
    size_t host_size_;
    unsigned int rpc_port_;
    std::string hostname_suffix_;
    std::string rpc_addr_;
    std::string lookup_file_;

@@ -130,6 +131,10 @@ public:

    void host_size(size_t host_size);

    const std::string& hostname_suffix() const;

    void hostname_suffix(const std::string& suffix);

    unsigned int rpc_port() const;

    void rpc_port(unsigned int rpc_port);
+0 −2
Original line number Diff line number Diff line
@@ -4,8 +4,6 @@
#ifndef FS_CONFIGURE_H
#define FS_CONFIGURE_H

#include "../../configure_public.hpp"

// Daemon path to auxiliary files
#define DAEMON_AUX_PATH "/tmp"

Loading