<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gluster-block.git/daemon, branch v0.3</title>
<subtitle></subtitle>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/'/>
<entry>
<title>daemon: set configshell file loglevel to info</title>
<updated>2017-09-19T11:34:47+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2017-09-19T11:31:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/commit/?id=ffebf6c2c5ba0e369204d99a41cb250cacd8b591'/>
<id>ffebf6c2c5ba0e369204d99a41cb250cacd8b591</id>
<content type='text'>
Change-Id: I64fa708bacff138423a490853e7c50c046a0ad28
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I64fa708bacff138423a490853e7c50c046a0ad28
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gluster-block: missing to include signal.h</title>
<updated>2017-09-18T14:56:47+00:00</updated>
<author>
<name>Ji-Hyeon Gim</name>
<email>potatogim@potatogim.net</email>
</author>
<published>2017-09-15T02:01:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/commit/?id=2ab382593a3dea2e6ca2dc213bf735574933c10b'/>
<id>2ab382593a3dea2e6ca2dc213bf735574933c10b</id>
<content type='text'>
Problem
    gluster-blockd using POSIX signal handling but it not includes signal.h

Change-Id: Iecb3a17d70226a894bfe9a6fb5b8382d87afde7f
Signed-off-by: Ji-Hyeon Gim &lt;potatogim@potatogim.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem
    gluster-blockd using POSIX signal handling but it not includes signal.h

Change-Id: Iecb3a17d70226a894bfe9a6fb5b8382d87afde7f
Signed-off-by: Ji-Hyeon Gim &lt;potatogim@potatogim.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix GB_TGCLI_GLOBALS macro</title>
<updated>2017-09-01T09:22:09+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2017-09-01T09:15:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/commit/?id=f45ef68512a56ab438c307045a72c5efd467e593'/>
<id>f45ef68512a56ab438c307045a72c5efd467e593</id>
<content type='text'>
change in GB_TGCLI_GLOBALS macro:
's/set global/targetcli set global/' followed by a saveconfig

Change-Id: I634f9ecbd7171828cb0da01314deeec99c4dfced
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
change in GB_TGCLI_GLOBALS macro:
's/set global/targetcli set global/' followed by a saveconfig

Change-Id: I634f9ecbd7171828cb0da01314deeec99c4dfced
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>gluster-block: use targetcli interactive mode</title>
<updated>2017-08-28T09:36:00+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2017-08-16T06:48:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/commit/?id=1316624066cc1ff821f892ea6601a63ca2d0094a'/>
<id>1316624066cc1ff821f892ea6601a63ca2d0094a</id>
<content type='text'>
Currently, on each targetcli create call, rtslib will rebuild its bs_cache, so
as the /sys/kernel/config/target/core dir gets more entries this takes longer
and longer to scan. Hence using repetitive targetcli in the block create
for creating iqn, backend, setting acls, setting globals will induce too
much delay in block create. As the number of blocks on the node increases,
the delay will be too longer.

This does not happen if we open targetcli in interactive mode and just do
multiple create commands form it, since the bs_cache is build once.

Read More:
https://goo.gl/8aYT38

Change-Id: I2be78a748e013f253ce8f99746989a1cf735a56f
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, on each targetcli create call, rtslib will rebuild its bs_cache, so
as the /sys/kernel/config/target/core dir gets more entries this takes longer
and longer to scan. Hence using repetitive targetcli in the block create
for creating iqn, backend, setting acls, setting globals will induce too
much delay in block create. As the number of blocks on the node increases,
the delay will be too longer.

This does not happen if we open targetcli in interactive mode and just do
multiple create commands form it, since the bs_cache is build once.

Read More:
https://goo.gl/8aYT38

Change-Id: I2be78a748e013f253ce8f99746989a1cf735a56f
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>logger: support logdir choosing via Environment variable</title>
<updated>2017-08-17T08:52:55+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2017-08-17T05:51:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/commit/?id=b535c44fdd2b71c50a8fcbcf1e1e1c2d1c0340e9'/>
<id>b535c44fdd2b71c50a8fcbcf1e1e1c2d1c0340e9</id>
<content type='text'>
Currently the default logdir is DATADIR /log/gluster-block/

This patch will provide a way to change this default logdir via Env variable
$ export GB_LOGDIR=/var/log/gluster-block-new-path/

Note: make sure to restart the processes (cli &amp; daemon) after you set GB_LOGDIR

Change-Id: Id142e4a4dfe7b6ebc9cf8296b8ceb8bff37691b8
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently the default logdir is DATADIR /log/gluster-block/

This patch will provide a way to change this default logdir via Env variable
$ export GB_LOGDIR=/var/log/gluster-block-new-path/

Note: make sure to restart the processes (cli &amp; daemon) after you set GB_LOGDIR

Change-Id: Id142e4a4dfe7b6ebc9cf8296b8ceb8bff37691b8
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Terminate gracefully when svc_register fails</title>
<updated>2017-06-14T05:02:21+00:00</updated>
<author>
<name>Pranith Kumar K</name>
<email>pkarampu@redhat.com</email>
</author>
<published>2017-06-13T09:59:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/commit/?id=ea8b04706d84a46b4487a9bd38494650fc8deb9f'/>
<id>ea8b04706d84a46b4487a9bd38494650fc8deb9f</id>
<content type='text'>
In cases when svc_register fails, gluster-blockd will print the
reason and terminate gracefully.

Fixes: #26
Change-Id: Ia243771d99fbaa674f317e7c8e64174f4d8d6234
Signed-off-by: Pranith Kumar K &lt;pkarampu@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In cases when svc_register fails, gluster-blockd will print the
reason and terminate gracefully.

Fixes: #26
Change-Id: Ia243771d99fbaa674f317e7c8e64174f4d8d6234
Signed-off-by: Pranith Kumar K &lt;pkarampu@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix compiler warnings</title>
<updated>2017-06-06T10:00:39+00:00</updated>
<author>
<name>Pranith Kumar K</name>
<email>pkarampu@redhat.com</email>
</author>
<published>2017-06-06T07:01:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/commit/?id=4b128f2ff635e4381bc310663da9f1c73b28e76e'/>
<id>4b128f2ff635e4381bc310663da9f1c73b28e76e</id>
<content type='text'>
Change-Id: I9dd396737a6719fe3828ec3e9c26bfd8aa1da238
Signed-off-by: Pranith Kumar K &lt;pkarampu@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I9dd396737a6719fe3828ec3e9c26bfd8aa1da238
Signed-off-by: Pranith Kumar K &lt;pkarampu@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>logger: filter log messages based on severity level</title>
<updated>2017-06-05T17:16:33+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2017-06-04T06:57:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/commit/?id=b5337c894f66661fb6a863467bcfac3fa12eaa7c'/>
<id>b5337c894f66661fb6a863467bcfac3fa12eaa7c</id>
<content type='text'>
This patch adds '--log-level' options

supported log levels:
{
   "NONE",
   "ERROR",
   "WARNING",
   "INFO",
   "DEBUG",
   "TRACE"
}

TRACE being max logging

$ gluster-blockd --help
[...]
  --log-level &lt;LOGLEVEL&gt;
        Logging severity. Valid options are,
        TRACE, DEBUG, INFO, WARNING, ERROR and NONE [default: INFO]
[...]

Change-Id: I5a387eea3e7e7be10a0b56102a61eb81b4ebf2fa
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds '--log-level' options

supported log levels:
{
   "NONE",
   "ERROR",
   "WARNING",
   "INFO",
   "DEBUG",
   "TRACE"
}

TRACE being max logging

$ gluster-blockd --help
[...]
  --log-level &lt;LOGLEVEL&gt;
        Logging severity. Valid options are,
        TRACE, DEBUG, INFO, WARNING, ERROR and NONE [default: INFO]
[...]

Change-Id: I5a387eea3e7e7be10a0b56102a61eb81b4ebf2fa
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>daemon: make glfs lru cache capacity configurable</title>
<updated>2017-06-05T16:42:20+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2017-06-01T09:38:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/commit/?id=15d9ee36c71bfe3499d7f3baf3a483199211261f'/>
<id>15d9ee36c71bfe3499d7f3baf3a483199211261f</id>
<content type='text'>
$ gluster-blockd --help
gluster-blockd (0.2)
usage:
  gluster-blockd [--glfs-lru-count &lt;count&gt;]

commands:
  --glfs-lru-count &lt;count&gt;
        glfs objects cache capacity [max: 512] (default: 5)
  --help
        show this message and exit.
  --version
        show version info and exit.

Change-Id: I00a9277690a1c5ace51e223e9e4ed9ce61ae2428
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
$ gluster-blockd --help
gluster-blockd (0.2)
usage:
  gluster-blockd [--glfs-lru-count &lt;count&gt;]

commands:
  --glfs-lru-count &lt;count&gt;
        glfs objects cache capacity [max: 512] (default: 5)
  --help
        show this message and exit.
  --version
        show version info and exit.

Change-Id: I00a9277690a1c5ace51e223e9e4ed9ce61ae2428
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cache: implement LRU cache to hold glfs objects</title>
<updated>2017-06-05T11:47:16+00:00</updated>
<author>
<name>Prasanna Kumar Kalever</name>
<email>prasanna.kalever@redhat.com</email>
</author>
<published>2017-05-31T19:01:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.gluster.org/cgit/gluster-block.git/commit/?id=3994aa8cf1bdcf3a07cddfefdb96cc2b94e01a97'/>
<id>3994aa8cf1bdcf3a07cddfefdb96cc2b94e01a97</id>
<content type='text'>
Problem:
-------

1. Currently, each cli command take ~5 secs for execution. The Maximum
latency is due to initializing a glfs object (glfs_init() and friends).

2. OOM kills due to glfs_fini() leaks (~10MB per object)

Solution:
--------

Caching bipasses glfs_init() calls from the very next command, as in the first
command it goes via the glfs_init route, since there will be cache miss.
Hence with caching cli command on a local machine should take ~1 sec.

ATM, the cache query looks at the volume name only, as the host name will be
localhost in our case and transport will be tcp 24007 always.

The default cache capacity is 5 i.e there can be a max of five glfs entries in
the cache, anything more will lead to release of least recently used object.

This way, if there are &lt;= 5 volume in use for block, there will be no
glfs_fini() calls, hence no leaks, no OOM's.

The next patch will help in making cache capacity configurable.

Change-Id: Ia891451cb92cf09959c1aff85976d78302ec7014
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
[ndevos: correct compiling+linking against libgfapi.so]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
-------

1. Currently, each cli command take ~5 secs for execution. The Maximum
latency is due to initializing a glfs object (glfs_init() and friends).

2. OOM kills due to glfs_fini() leaks (~10MB per object)

Solution:
--------

Caching bipasses glfs_init() calls from the very next command, as in the first
command it goes via the glfs_init route, since there will be cache miss.
Hence with caching cli command on a local machine should take ~1 sec.

ATM, the cache query looks at the volume name only, as the host name will be
localhost in our case and transport will be tcp 24007 always.

The default cache capacity is 5 i.e there can be a max of five glfs entries in
the cache, anything more will lead to release of least recently used object.

This way, if there are &lt;= 5 volume in use for block, there will be no
glfs_fini() calls, hence no leaks, no OOM's.

The next patch will help in making cache capacity configurable.

Change-Id: Ia891451cb92cf09959c1aff85976d78302ec7014
Signed-off-by: Prasanna Kumar Kalever &lt;prasanna.kalever@redhat.com&gt;
[ndevos: correct compiling+linking against libgfapi.so]
</pre>
</div>
</content>
</entry>
</feed>
