Skip to contentSkip to conversation

Prioritize Heartbeat packets

DISCUSSION Robert LeBlanc 5 participants 9 messages Mar 7, 2015 – Apr 10, 2015 6 messages not in the archive

lore
Share & tools
lore
#3 lore raw
In reply to a message not in the archive

I see that Jian Wen has done work on this for 0.94. I tried looking through the code to see if I can figure out how to configure this new option, but it all went over my head pretty quick.

Can I get a brief summary on how to set the priority of heartbeat packets or where to look in the code to figure it out?

Thanks,

Quoted 17 lines · Daniel Swarbrick
Quoted 2 lines · Sage Weil

I seem to remember someone telling me there were hooks/hints you could call that would tag either a socket or possibly data on that socket with

a

Quoted 2 lines

label for use by iptables and such.. but I forget what it was.

Something like setsockopt() SO_MARK?

*SO_MARK *(since Linux 2.6.25)
Set the mark for each packet sent through this socket
(similar
to the netfilter MARK target but socket-based). Changing the mark can be used for mark-based routing without netfilter or for packet filtering. Setting this option requires the *CAP_NET_ADMIN *capability.

Quoted 9 lines

Alternatively, directly set IP_TOS options on the socket, or SO_PRIORITY which sets the IP TOS bits as well.

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#5 lore raw
In reply to a message not in the archive

Hidden HTML ... trying agin...

---------- Forwarded message ----------
From: Robert LeBlanc <[email protected]>
Date: Fri, Mar 6, 2015 at 5:20 PM
Subject: Re: [ceph-users] Prioritize Heartbeat packets
To: "[email protected]" <[email protected]>, ceph-devel <[email protected]>

I see that Jian Wen has done work on this for 0.94. I tried looking through the code to see if I can figure out how to configure this new option, but it all went over my head pretty quick.

Can I get a brief summary on how to set the priority of heartbeat packets or where to look in the code to figure it out?

Thanks,

Quoted 24 lines · Daniel Swarbrick
Quoted 4 lines · Sage Weil

I seem to remember someone telling me there were hooks/hints you could call that would tag either a socket or possibly data on that socket with a label for use by iptables and such.. but I forget what it was.

Something like setsockopt() SO_MARK?

*SO_MARK *(since Linux 2.6.25)
Set the mark for each packet sent through this socket (similar to the netfilter MARK target but socket-based). Changing the mark can be used for mark-based routing without netfilter or for packet filtering. Setting this option requires the *CAP_NET_ADMIN *capability.

Alternatively, directly set IP_TOS options on the socket, or SO_PRIORITY which sets the IP TOS bits as well.

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#6 lore raw
In reply to Robert LeBlanc

Judging by the commit, this ought to do the trick:

osd heartbeat use min delay socket = true

Quoted 49 lines · Robert LeBlanc

I see that Jian Wen has done work on this for 0.94. I tried looking through the code to see if I can figure out how to configure this new option, but it all went over my head pretty quick.

Can I get a brief summary on how to set the priority of heartbeat packets or where to look in the code to figure it out?

Thanks,

On Thu, Aug 28, 2014 at 2:01 AM, Daniel Swarbrick <[email protected] <mailto:[email protected]>> wrote:

On 28/08/14 02:56, Sage Weil wrote:
> I seem to remember someone telling me there were hooks/hints you could > call that would tag either a socket or possibly data on that socket with a > label for use by iptables and such.. but I forget what it was. >

Something like setsockopt() SO_MARK?

*SO_MARK *(since Linux 2.6.25)
Set the mark for each packet sent through this socket
(similar
to the netfilter MARK target but socket-based).
Changing the
mark can be used for mark-based routing without
netfilter or
for packet filtering. Setting this option requires the *CAP_NET_ADMIN *capability.

Alternatively, directly set IP_TOS options on the socket, or SO_PRIORITY which sets the IP TOS bits as well.

_______________________________________________
ceph-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#7 lore raw

I've found commit 9b9a682fe035c985e416ee1c112fa58f9045a27c and I see that when 'osd heartbeat use min delay socket = true' it will mark the packet with DSCP CS6. Based on the setting of the socket in msg/simple/Pipe.cc is it possible that this can apply to both OSD and monitor? I don't understand the code enough to know how the set_socket_options() is called from the OSD and monitor.

If this applies to both monitor and OSD, would it be better to rename the option to a more generic name?

Thanks,

Quoted 64 lines · Daniel Swarbrick

Judging by the commit, this ought to do the trick:

osd heartbeat use min delay socket = true

Quoted 48 lines · Robert LeBlanc

I see that Jian Wen has done work on this for 0.94. I tried looking through the code to see if I can figure out how to configure this new option, but it all went over my head pretty quick.

Can I get a brief summary on how to set the priority of heartbeat packets or where to look in the code to figure it out?

Thanks,

On Thu, Aug 28, 2014 at 2:01 AM, Daniel Swarbrick <[email protected] <mailto:[email protected]>> wrote:

On 28/08/14 02:56, Sage Weil wrote:
> I seem to remember someone telling me there were hooks/hints you
could

Quoted 1 line

call that would tag either a socket or possibly data on that socket

with a

Quoted 2 lines

label for use by iptables and such.. but I forget what it was.

Something like setsockopt() SO_MARK?

*SO_MARK *(since Linux 2.6.25)
Set the mark for each packet sent through this socket
(similar
to the netfilter MARK target but socket-based).
Changing the
mark can be used for mark-based routing without
netfilter or
for packet filtering. Setting this option requires the *CAP_NET_ADMIN *capability.

Alternatively, directly set IP_TOS options on the socket, or
SO_PRIORITY
which sets the IP TOS bits as well.

_______________________________________________
ceph-users mailing list [email protected] <mailto:[email protected]>
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 5 lines

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw

Only OSD calls set_socket_priority().
See https://github.com/ceph/ceph/pull/3353

Quoted 82 lines · Robert LeBlanc

I've found commit 9b9a682fe035c985e416ee1c112fa58f9045a27c and I see that when 'osd heartbeat use min delay socket = true' it will mark the packet with DSCP CS6. Based on the setting of the socket in msg/simple/Pipe.cc is it possible that this can apply to both OSD and monitor? I don't understand the code enough to know how the set_socket_options() is called from the OSD and monitor.

If this applies to both monitor and OSD, would it be better to rename the option to a more generic name?

Thanks,

Quoted 60 lines · Daniel Swarbrick

Judging by the commit, this ought to do the trick:

osd heartbeat use min delay socket = true

Quoted 48 lines · Robert LeBlanc

I see that Jian Wen has done work on this for 0.94. I tried looking through the code to see if I can figure out how to configure this new option, but it all went over my head pretty quick.

Can I get a brief summary on how to set the priority of heartbeat packets or where to look in the code to figure it out?

Thanks,

On Thu, Aug 28, 2014 at 2:01 AM, Daniel Swarbrick <[email protected] <mailto:[email protected]>> wrote:

On 28/08/14 02:56, Sage Weil wrote:
> I seem to remember someone telling me there were hooks/hints you
could

Quoted 1 line

call that would tag either a socket or possibly data on that socket

with a

Quoted 2 lines

label for use by iptables and such.. but I forget what it was.

Something like setsockopt() SO_MARK?

*SO_MARK *(since Linux 2.6.25)
Set the mark for each packet sent through this socket
(similar
to the netfilter MARK target but socket-based).
Changing the
mark can be used for mark-based routing without
netfilter or
for packet filtering. Setting this option requires the *CAP_NET_ADMIN *capability.

Alternatively, directly set IP_TOS options on the socket, or
SO_PRIORITY
which sets the IP TOS bits as well.

_______________________________________________
ceph-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 5 lines

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Signature · 3 lines
Best,

Jian
#9 lore raw

Jian,

Thanks for the clarification. I'll mark traffic destined for the monitors as well. We are getting ready to put our first cluster into production. If you are interested we will be testing the heartbeat priority to see if we can saturate the network (not an easy task for 40 Gb) and keep the cluster from falling apart. Our network team is marking COS based on the DSCP and enforcing priority. We have three VLANs on bonded 40 GbE, management, storage (monitors, clients, OSDs), and cluster (replication). We have three priority classes management (heartbeats on all VLANs, SSH, DNS, etc), storage traffic (no marking), and replication (scavenger class). We are interested to see how things pan out.

Thanks,
Robert

Quoted 93 lines · Jian Wen

Only OSD calls set_socket_priority().
See https://github.com/ceph/ceph/pull/3353

Quoted 74 lines · Robert LeBlanc

I've found commit 9b9a682fe035c985e416ee1c112fa58f9045a27c and I see that when 'osd heartbeat use min delay socket = true' it will mark the packet with DSCP CS6. Based on the setting of the socket in msg/simple/Pipe.cc is it possible that this can apply to both OSD and monitor? I don't understand the code enough to know how the set_socket_options() is called from the OSD and monitor.

If this applies to both monitor and OSD, would it be better to rename the option to a more generic name?

Thanks,

Quoted 60 lines · Daniel Swarbrick

Judging by the commit, this ought to do the trick:

osd heartbeat use min delay socket = true

Quoted 53 lines · Robert LeBlanc

I see that Jian Wen has done work on this for 0.94. I tried looking through the code to see if I can figure out how to configure this new option, but it all went over my head pretty quick.

Can I get a brief summary on how to set the priority of heartbeat packets or where to look in the code to figure it out?

Thanks,

On Thu, Aug 28, 2014 at 2:01 AM, Daniel Swarbrick <[email protected] <mailto:[email protected]>> wrote:

On 28/08/14 02:56, Sage Weil wrote:
> I seem to remember someone telling me there were hooks/hints you
could

Quoted 1 line

call that would tag either a socket or possibly data on that socket

with a

Quoted 2 lines

label for use by iptables and such.. but I forget what it was.

Something like setsockopt() SO_MARK?

*SO_MARK *(since Linux 2.6.25)
Set the mark for each packet sent through this socket
(similar
to the netfilter MARK target but socket-based).
Changing the
mark can be used for mark-based routing without
netfilter or
for packet filtering. Setting this option requires the *CAP_NET_ADMIN *capability.

Alternatively, directly set IP_TOS options on the socket, or
SO_PRIORITY
which sets the IP TOS bits as well.

_______________________________________________
ceph-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 8 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

--
Best,

Jian

#11 lore raw
In reply to a message not in the archive

Robert,
60 days ago, we enabled this feature in our production environment. It works for us.

Did you see any flapping OSDs?

Quoted 111 lines · Robert LeBlanc

Jian,

Thanks for the clarification. I'll mark traffic destined for the monitors as well. We are getting ready to put our first cluster into production. If you are interested we will be testing the heartbeat priority to see if we can saturate the network (not an easy task for 40 Gb) and keep the cluster from falling apart. Our network team is marking COS based on the DSCP and enforcing priority. We have three VLANs on bonded 40 GbE, management, storage (monitors, clients, OSDs), and cluster (replication). We have three priority classes management (heartbeats on all VLANs, SSH, DNS, etc), storage traffic (no marking), and replication (scavenger class). We are interested to see how things pan out.

Thanks,
Robert

Quoted 93 lines · Jian Wen

Only OSD calls set_socket_priority().
See https://github.com/ceph/ceph/pull/3353

Quoted 74 lines · Robert LeBlanc

I've found commit 9b9a682fe035c985e416ee1c112fa58f9045a27c and I see that when 'osd heartbeat use min delay socket = true' it will mark the packet with DSCP CS6. Based on the setting of the socket in msg/simple/Pipe.cc is it possible that this can apply to both OSD and monitor? I don't understand the code enough to know how the set_socket_options() is called from the OSD and monitor.

If this applies to both monitor and OSD, would it be better to rename the option to a more generic name?

Thanks,

Quoted 60 lines · Daniel Swarbrick

Judging by the commit, this ought to do the trick:

osd heartbeat use min delay socket = true

Quoted 53 lines · Robert LeBlanc

I see that Jian Wen has done work on this for 0.94. I tried looking through the code to see if I can figure out how to configure this new option, but it all went over my head pretty quick.

Can I get a brief summary on how to set the priority of heartbeat packets or where to look in the code to figure it out?

Thanks,

On Thu, Aug 28, 2014 at 2:01 AM, Daniel Swarbrick <[email protected] <mailto:[email protected]>> wrote:

On 28/08/14 02:56, Sage Weil wrote:
> I seem to remember someone telling me there were hooks/hints you
could

Quoted 1 line

call that would tag either a socket or possibly data on that socket

with a

Quoted 2 lines

label for use by iptables and such.. but I forget what it was.

Something like setsockopt() SO_MARK?

*SO_MARK *(since Linux 2.6.25)
Set the mark for each packet sent through this socket
(similar
to the netfilter MARK target but socket-based).
Changing the
mark can be used for mark-based routing without
netfilter or
for packet filtering. Setting this option requires the *CAP_NET_ADMIN *capability.

Alternatively, directly set IP_TOS options on the socket, or
SO_PRIORITY
which sets the IP TOS bits as well.

_______________________________________________
ceph-users mailing list [email protected] <mailto:[email protected]>
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 8 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

--
Best,

Jian

Signature · 3 lines
Best,

Jian
#13 lore raw
In reply to a message not in the archive

We have had some delays. Our to be production cluster is currently on firefly but should be on hammer next week. Once upgraded we will preform the network saturation test and verify results.

Robert LeBlanc

Sent from a mobile device please excuse any typos.

Quoted 124 lines · Jian Wen

Robert,
60 days ago, we enabled this feature in our production environment. It works for us.

Did you see any flapping OSDs?

Quoted 22 lines · Robert LeBlanc

Jian,

Thanks for the clarification. I'll mark traffic destined for the monitors as well. We are getting ready to put our first cluster into production. If you are interested we will be testing the heartbeat priority to see if we can saturate the network (not an easy task for 40 Gb) and keep the cluster from falling apart. Our network team is marking COS based on the DSCP and enforcing priority. We have three VLANs on bonded 40 GbE, management, storage (monitors, clients, OSDs), and cluster (replication). We have three priority classes management (heartbeats on all VLANs, SSH, DNS, etc), storage traffic (no marking), and replication (scavenger class). We are interested to see how things pan out.

Thanks,
Robert

Quoted 4 lines · Jian Wen

Only OSD calls set_socket_priority().
See https://github.com/ceph/ceph/pull/3353

On Tue, Mar 10, 2015 at 3:36 AM, Robert LeBlanc <[email protected]>

Quoted 27 lines · wrote:
Quoted 27 lines
Quoted 27 lines

I've found commit 9b9a682fe035c985e416ee1c112fa58f9045a27c and I see that when 'osd heartbeat use min delay socket = true' it will mark the packet with DSCP CS6. Based on the setting of the socket in msg/simple/Pipe.cc is it possible that this can apply to both OSD and monitor? I don't understand the code enough to know how the set_socket_options() is called from the OSD and monitor.

If this applies to both monitor and OSD, would it be better to rename the option to a more generic name?

Thanks,

Quoted 13 lines · Daniel Swarbrick

Judging by the commit, this ought to do the trick:

osd heartbeat use min delay socket = true

Quoted 8 lines · Robert LeBlanc

I see that Jian Wen has done work on this for 0.94. I tried looking through the code to see if I can figure out how to configure this new option, but it all went over my head pretty quick.

Can I get a brief summary on how to set the priority of heartbeat packets or where to look in the code to figure it out?

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Thanks,

On Thu, Aug 28, 2014 at 2:01 AM, Daniel Swarbrick <[email protected] <mailto:[email protected]>> wrote:

On 28/08/14 02:56, Sage Weil wrote:
> I seem to remember someone telling me there were hooks/hints

you

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

could

Quoted 1 line

call that would tag either a socket or possibly data on that

socket

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

with a

Quoted 2 lines

label for use by iptables and such.. but I forget what it was.

Something like setsockopt() SO_MARK?

*SO_MARK *(since Linux 2.6.25)
Set the mark for each packet sent through this

socket

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

(similar
to the netfilter MARK target but socket-based).
Changing the
mark can be used for mark-based routing without
netfilter or
for packet filtering. Setting this option

requires the

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 21 lines

*CAP_NET_ADMIN *capability.

Alternatively, directly set IP_TOS options on the socket, or
SO_PRIORITY
which sets the IP TOS bits as well.

_______________________________________________
ceph-users mailing list [email protected] <mailto:[email protected]>
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel"

in

Quoted 12 lines
Quoted 12 lines
Quoted 6 lines
Quoted 2 lines

the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

--
Best,

Quoted 9 lines
Quoted 1 line
Quoted 1 line

Jian

--
Best,

Jian

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#14 lore raw
In reply to Jian Wen

We have had some delays. Our to be production cluster is currently on firefly but should be on hammer next week. Once upgraded we will preform the network saturation test and verify results.

Quoted 125 lines · Jian Wen

Robert,
60 days ago, we enabled this feature in our production environment. It works for us.

Did you see any flapping OSDs?

Quoted 14 lines · Robert LeBlanc

Jian,

Thanks for the clarification. I'll mark traffic destined for the monitors as well. We are getting ready to put our first cluster into production. If you are interested we will be testing the heartbeat priority to see if we can saturate the network (not an easy task for 40 Gb) and keep the cluster from falling apart. Our network team is marking COS based on the DSCP and enforcing priority. We have three VLANs on bonded 40 GbE, management, storage (monitors, clients, OSDs), and cluster (replication). We have three priority classes management (heartbeats on all VLANs, SSH, DNS, etc), storage traffic (no marking), and replication (scavenger class). We are interested to see how things pan out.

Quoted 97 lines

Thanks,
Robert

Quoted 93 lines · Jian Wen

Only OSD calls set_socket_priority().
See https://github.com/ceph/ceph/pull/3353

Quoted 74 lines · Robert LeBlanc

I've found commit 9b9a682fe035c985e416ee1c112fa58f9045a27c and I see that when 'osd heartbeat use min delay socket = true' it will mark the packet with DSCP CS6. Based on the setting of the socket in msg/simple/Pipe.cc is it possible that this can apply to both OSD and monitor? I don't understand the code enough to know how the set_socket_options() is called from the OSD and monitor.

If this applies to both monitor and OSD, would it be better to rename the option to a more generic name?

Thanks,

Quoted 60 lines · Daniel Swarbrick

Judging by the commit, this ought to do the trick:

osd heartbeat use min delay socket = true

Quoted 53 lines · Robert LeBlanc

I see that Jian Wen has done work on this for 0.94. I tried looking through the code to see if I can figure out how to configure this new option, but it all went over my head pretty quick.

Can I get a brief summary on how to set the priority of heartbeat packets or where to look in the code to figure it out?

Thanks,

On Thu, Aug 28, 2014 at 2:01 AM, Daniel Swarbrick <[email protected] <mailto:[email protected]>> wrote:

On 28/08/14 02:56, Sage Weil wrote:
> I seem to remember someone telling me there were hooks/hints you
could

Quoted 1 line

call that would tag either a socket or possibly data on that socket

with a

Quoted 2 lines

label for use by iptables and such.. but I forget what it was.

Something like setsockopt() SO_MARK?

*SO_MARK *(since Linux 2.6.25)
Set the mark for each packet sent through this socket
(similar
to the netfilter MARK target but socket-based).
Changing the
mark can be used for mark-based routing without
netfilter or
for packet filtering. Setting this option requires the *CAP_NET_ADMIN *capability.

Alternatively, directly set IP_TOS options on the socket, or
SO_PRIORITY
which sets the IP TOS bits as well.

_______________________________________________
ceph-users mailing list
[email protected]
<mailto:[email protected]>
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Quoted 8 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

--
Best,

Jian

--
Best,

Jian