Unverified Commit fa6a23cf authored by chicm-ms's avatar chicm-ms Committed by GitHub
Browse files

Update nni exp dir (#2686)

parent 5d33b41d
......@@ -293,7 +293,7 @@ Note: run `ifconfig` on NNI manager's machine to check if eth0 device exists. If
### logDir
Optional. Path to a directory. Default: `<user home directory>/nni/experiment`.
Optional. Path to a directory. Default: `<user home directory>/nni-experiments`.
Configures the directory to store logs and data of the experiment.
......
......@@ -34,7 +34,7 @@ Unable to open the WebUI may have the following reasons:
* `http://127.0.0.1`, `http://172.17.0.1` and `http://10.0.0.15` are referred to localhost, if you start your experiment on the server or remote machine. You can replace the IP to your server IP to view the WebUI, like `http://[your_server_ip]:8080`
* If you still can't see the WebUI after you use the server IP, you can check the proxy and the firewall of your machine. Or use the browser on the machine where you start your NNI experiment.
* Another reason may be your experiment is failed and NNI may fail to get the experiment information. You can check the log of NNIManager in the following directory: `~/nni/experiment/[your_experiment_id]` `/log/nnimanager.log`
* Another reason may be your experiment is failed and NNI may fail to get the experiment information. You can check the log of NNIManager in the following directory: `~/nni-experiments/[your_experiment_id]` `/log/nnimanager.log`
### Restful server start failed
......
......@@ -25,9 +25,9 @@ You can use `nnictl log stderr` to find error information. For more options plea
### Experiment Root Directory
Every experiment has a root folder, which is shown on the right-top corner of webUI. Or you could assemble it by replacing the `experiment_id` with your actual experiment_id in path `~/nni/experiment/experiment_id/` in case of webUI failure. `experiment_id` could be seen when you run `nnictl create ...` to create a new experiment.
Every experiment has a root folder, which is shown on the right-top corner of webUI. Or you could assemble it by replacing the `experiment_id` with your actual experiment_id in path `~/nni-experiments/experiment_id/` in case of webUI failure. `experiment_id` could be seen when you run `nnictl create ...` to create a new experiment.
> For flexibility, we also offer a `logDir` option in your configuration, which specifies the directory to store all experiments (defaults to `~/nni/experiment`). Please refer to [Configuration](ExperimentConfig.md) for more details.
> For flexibility, we also offer a `logDir` option in your configuration, which specifies the directory to store all experiments (defaults to `~/nni-experiments`). Please refer to [Configuration](ExperimentConfig.md) for more details.
Under that directory, there is another directory named `log`, where `nnimanager.log` and `dispatcher.log` are placed.
......
......@@ -31,7 +31,7 @@ class ExperimentStartupInfo {
if (logDir !== undefined && logDir.length > 0) {
this.logDir = path.join(path.normalize(logDir), this.getExperimentId());
} else {
this.logDir = path.join(os.homedir(), 'nni', 'experiments', this.getExperimentId());
this.logDir = path.join(os.homedir(), 'nni-experiments', this.getExperimentId());
}
if (logLevel !== undefined && logLevel.length > 1) {
......
......@@ -166,7 +166,7 @@ describe('Unit test for nnimanager', function () {
it('test getExperimentProfile', () => {
return nniManager.getExperimentProfile().then((experimentProfile) => {
expect(experimentProfile.id).to.be.equal('unittest');
expect(experimentProfile.logDir).to.be.equal(path.join(os.homedir(),'nni','experiments','unittest'));
expect(experimentProfile.logDir).to.be.equal(path.join(os.homedir(),'nni-experiments','unittest'));
}).catch((error) => {
assert.fail(error);
......
......@@ -71,7 +71,7 @@ def get_experiment_dir(experiment_url=None, experiment_id=None):
assert any([experiment_url, experiment_id])
if experiment_id is None:
experiment_id = get_experiment_id(experiment_url)
return os.path.join(os.path.expanduser('~'), 'nni', 'experiments', experiment_id)
return os.path.join(os.path.expanduser('~'), 'nni-experiments', experiment_id)
def get_nni_log_dir(experiment_url=None, experiment_id=None):
'''get nni's log directory from nni's experiment url'''
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment