Skip to content

Log OS process I/O#596

Merged
nickva merged 1 commit into
apache:masterfrom
cloudant:log-couchjs-io-error
Jun 13, 2017
Merged

Log OS process I/O#596
nickva merged 1 commit into
apache:masterfrom
cloudant:log-couchjs-io-error

Conversation

@nickva
Copy link
Copy Markdown
Contributor

@nickva nickva commented Jun 13, 2017

Logging is based on an environment variable:

COUCHDB_IO_LOG_DIR

If set, logs will go to that directory.

Logs are per couch_os_process Erlang process. There are 3 files saved for
each process:

<unixtimestamp>_<erlangpid>.in.log : Input, data coming from the proess
<unixtimestamp>_<erlangpid>.out.log : Output, data going to the process
<unixtimestamp>_<erlangpid>.meta : Error reason

Log files are saved as named (visible) files only if an error occurs. If there
is no error, disk space will still be used as long the process is alive. But as
soon as it exists, file will be unlinked and space will be reclaimed.

Issue: #551

Logging is based on an environment variable:

`COUCHDB_IO_LOG_DIR`

If set, logs will go to that directory.

Logs are per `couch_os_process` Erlang process. There are 3 files saved for
each process:

```
<unixtimestamp>_<erlangpid>.in.log : Input, data coming from the proess
<unixtimestamp>_<erlangpid>.out.log : Output, data going to the process
<unixtimestamp>_<erlangpid>.meta : Error reason
```

Log files are saved as named (visible) files only if an error occurs. If there
is no error, disk space will still be used as long the process is alive. But as
soon as it exists, file will be unlinked and space will be reclaimed.

Issue: apache#551
@nickva nickva force-pushed the log-couchjs-io-error branch from 0f969ef to fdb3e79 Compare June 13, 2017 21:01
@davisp
Copy link
Copy Markdown
Member

davisp commented Jun 13, 2017

+1

@nickva nickva merged commit 1ae5d57 into apache:master Jun 13, 2017
@nickva nickva deleted the log-couchjs-io-error branch June 13, 2017 22:02
nickva pushed a commit to nickva/couchdb that referenced this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants