[DRBD-user] speed problems

Gianni Milo gianni.milo22 at gmail.com
Mon Apr 6 11:25:17 CEST 2020


There are two ways to configure the re-sync rate, the old (static) and the
new (dynamic) method.

If you prefer using the old method, set 'c-plan-ahead 0' to disable the
dynamic re-sync rate controller and then use 'resync-rate rate' to
statically set the sync rate speed (man drbd.conf for more). Don't forget
to remove any remaining "c-*" entries from resource config file.

If you wish to experiment with the dynamic sync rate controller which is
enabled by default both in DRBD8.4 and DRBD9, then use the following blog
post as a reference...

https://www.linbit.com/drbd-and-the-sync-rate-controller-part-3/

For both methods, use 'max-buffers' to throttle the process as described in
the post you mentioned earlier.

G.

On Mon, 6 Apr 2020 at 06:29, Rick Gutierrez <xserverlinux at gmail.com> wrote:

> Hi ,  here again, i'm trying something i found in the list
> https://lists.linbit.com/pipermail/drbd-user/2018-October/024571.html
>
> version: 8.4.11-1 (api:1/proto:86-101)
> GIT-hash: 66145a308421e9c124ec391a7848ac20203bb03c build by
> mockbuild@, 2018-11-03 01:26:55
>  0: cs:SyncSource ro:Primary/Primary ds:UpToDate/Inconsistent C r-----
>     ns:5135424 nr:0 dw:0 dr:5137552 al:0 bm:0 lo:0 pe:59 ua:0 ap:0
> ep:1 wo:d oos:1392034268
> [>....................] sync'ed:  0.4% (1359408/1364360)M
> finish: 90:33:02 speed: 4,260 (3,552) K/sec
>
> but I don't get a noticeable improvement, when I copy a file between
> the two servers I get speeds of 55MB
>
> any idea?
>
> El vie., 3 abr. 2020 a las 9:55, Rick Gutierrez
> (<xserverlinux at gmail.com>) escribió:
> >
> > hi list, i am installing drbd 8.4.x in centos 7 in a couple of boxes,
> > i need to replicate my mail server, but i am having speed problems in
> > the replication, i have tried different options within the
> > configuration and without success.
> >
> > I have my network at 1gb ethernet, my switch is cisco 2960-S, I am
> > replicating 1.3TB on 7200RPM disks, but the speed is terrible, very
> > slow.
> >
> > version of rpm
> > drbd84-utils-9.6.0-1.el7.elrepo.x86_64
> > kmod-drbd84-8.4.11-1.1.el7_6.elrepo.x86_64
> > drbd84-utils-sysvinit-9.6.0-1.el7.elrepo.x86_64
> >
> > my setting:
> >
> > disk {
> >
> >         c-plan-ahead 0;
> >                 on-io-error detach;
> > no-disk-flushes ;
> >         no-disk-barrier;
> >                 c-min-rate 90M;
> > c-max-rate 120M;
> >
> > net {
> >
> >         allow-two-primaries;
> >
> >         cram-hmac-alg sha1;
> >
> >         shared-secret  "C2qz2wsx";
> >
> > max-buffers             36k;
> >
> >         sndbuf-size            1024k ;
> >
> >         rcvbuf-size            2048k;
> >
> >     }
> >
> > any idea?
> >
> > --
> > rickygm
> >
> > http://gnuforever.homelinux.com
>
>
>
> --
> rickygm
>
> http://gnuforever.homelinux.com
> _______________________________________________
> Star us on GITHUB: https://github.com/LINBIT
> drbd-user mailing list
> drbd-user at lists.linbit.com
> https://lists.linbit.com/mailman/listinfo/drbd-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20200406/d1764bd6/attachment.htm>


More information about the drbd-user mailing list