Wednesday, 2019-11-27

*** strobert1 has quit IRC00:32
*** strobert1 has joined #openstack-swift01:10
*** nanzha has joined #openstack-swift01:24
*** spsurya has joined #openstack-swift01:40
*** threestrands has quit IRC05:51
*** psachin has joined #openstack-swift06:09
*** pcaruana has joined #openstack-swift06:34
*** nanzha has quit IRC06:51
*** nanzha has joined #openstack-swift06:51
*** nanzha has quit IRC07:21
*** nanzha has joined #openstack-swift07:31
*** nanzha has quit IRC08:00
*** nanzha has joined #openstack-swift08:01
*** tesseract has joined #openstack-swift08:04
*** rdejoux has joined #openstack-swift08:13
*** tkajinam has quit IRC08:21
*** nanzha has quit IRC08:41
*** nanzha has joined #openstack-swift08:43
*** mikecmpbll has joined #openstack-swift08:51
*** rpittau|afk is now known as rpittau08:57
*** ccamacho has joined #openstack-swift09:02
*** nanzha has quit IRC09:11
*** nanzha has joined #openstack-swift09:13
*** nanzha has quit IRC09:21
*** nanzha has joined #openstack-swift09:25
*** csmart has quit IRC09:27
*** baffle has quit IRC09:27
*** openstackstatus has quit IRC09:30
*** nanzha has quit IRC09:32
*** nanzha has joined #openstack-swift09:34
*** nanzha has quit IRC09:54
*** threestrands has joined #openstack-swift10:24
*** rcernin has quit IRC10:31
*** csmart has joined #openstack-swift10:36
*** baffle has joined #openstack-swift10:36
*** rcernin has joined #openstack-swift10:46
*** tkajinam has joined #openstack-swift10:50
*** rcernin has quit IRC11:31
*** threestrands has quit IRC11:59
*** tkajinam has quit IRC12:11
*** tkajinam has joined #openstack-swift12:15
*** tkajinam has quit IRC12:16
*** zaitcev__ has joined #openstack-swift13:18
*** ChanServ sets mode: +v zaitcev__13:18
*** zaitcev_ has quit IRC13:21
*** psachin has quit IRC13:53
*** mikecmpbll has quit IRC15:01
*** mikecmpbll has joined #openstack-swift15:04
*** hoonetorg has quit IRC15:51
*** ormandj has joined #openstack-swift16:00
ormandjhttps://github.com/openstack/swift/blob/f9898ec8f3b27954a6544db91ca36f20b5b74feb/swift/common/middleware/ratelimit.py#L286 <-- any reason 498 vs. 429?16:00
*** hoonetorg has joined #openstack-swift16:04
*** bharath54321 has joined #openstack-swift16:04
bharath54321Hi I have a question regarding Swift. In a GET request, out of the 3 disks(let's say replication factor of 3) which one disk is picked to retrive the object?16:05
bharath54321Is it random or is there any parameter by which swift picks it?16:06
*** mikecmpbll has quit IRC16:19
*** mikecmpbll has joined #openstack-swift16:21
*** diablo_rojo has joined #openstack-swift16:36
root____1Hi bharath54321, there is a param for that, you can look for "sorting_method" and "read_affinity" in the docs. The default is shuffle (random)16:39
*** root____1 is now known as dcourtoi16:40
bharath54321Thanks for the reply! I can't seem to find it in the docs.16:41
bharath54321Does it have anything to do with the response time of a disk?16:41
bharath54321An SSD is faster than HDD, will Swift pick an SSD rather than an HDD in this case?16:42
dcourtoithe docs where you can find it : https://docs.openstack.org/swift/ocata/deployment_guide.html and https://docs.openstack.org/swift/pike/overview_global_cluster.html#read-affinity16:43
*** zaitcev__ is now known as zaitcev16:43
ormandjbharath54321: no, there's no implementation of that as far as i've seen16:44
bharath54321Thanks ormandj and dcourtoi for your replies!16:44
bharath54321data placement is based on even distribution and unique-as-possible algorithm if I am right?16:46
bharath54321Do you take into account the speed of the disks to place data in?16:46
bharath54321i.e SSD over HDD16:46
zaitcevbharath54321: when the builder spreads partitions across devices, it does not have the information about which devices are which. The operator can only include devices into rings, or not. So, you can create a "gold" tier policy that costs more and uses SSDs, and "silver" tier policy that uses HDDs. But the distribution is static and proxy only follows the map that builder created ahead of time.16:49
ormandjbharath54321: i had answered that question with my previous response, sorry for lack of clarity. swift is not preferential in placement based on drive type/speed, as it doesn't currently have insight into that. as zaitcev mentioned there are ways to work around this, but it's not automatic16:50
ormandjswift using a consistent hash ring for placement, which is what the above mentioned ring builder creates16:50
zaitcevormandj: I think 429 wasn't a standard back when Swift was released. So, since we already had the 499 for timeout, someone used another similar code.16:51
zaitcevormandj, my cursory web search says that RFC-6585 was only published in 2012.16:51
ormandjzaitcev: fair enough, and i'm guessing no plans to change? found the rfc: https://tools.ietf.org/html/rfc658516:51
ormandjhah yeah16:51
bharath54321zaitcev, Thank you for your kind reply. It is clear to me. Also AFAIK you don't give devices but mount points to the devices. So we don't really know about the low level device16:52
bharath54321ormandj, Your answer made sense. I just wanted to reinforce it to myself. I apologize for the hassle.16:52
ormandjbharath54321: correct, swift has no insight into the devices themselves currently16:52
ormandjno hassle at all16:52
bharath54321:) So during a GET request does swift go to all the 3 disks and return 1 of the replicas. Or randomly pick one disk, then if it fails go to the next disk?16:55
*** rdejoux has quit IRC17:09
*** openstackgerrit has joined #openstack-swift17:21
openstackgerritClay Gerrard proposed openstack/swift master: Fix BadResponseLength error when creating symlink  https://review.opendev.org/69611317:21
zaitcevOnce again, the policy can be shuffle or timing. So, in case of GET, the proxy picks up one node from the list sorted according to the policy. If the connection is established, proxy continues with the GET.17:24
bharath54321Thanks zaitcev for your time!17:24
bharath54321It really helped me17:25
zaitcevHelped in what way? What do you want to do with this information?17:25
bharath54321I am using Swift in Uni for research on power saving algorithms17:26
bharath54321disk power saving algorithms17:27
bharath54321I have implemented a non volatile memory cache in Swift to store the data of a sleepig disk17:27
bharath54321On a controlled setup that is.17:27
zaitcevCurious.17:29
bharath54321I have managed to sleep a disk in Swift by a lot of hard work :)17:29
*** mikecmpbll has quit IRC17:36
tdasilvabharath54321: that’s really cool. please do share with the community once your research is published17:43
bharath54321tdasilva, yup, will do :)17:48
*** tesseract has quit IRC17:53
*** bharath54321 has quit IRC18:11
*** rpittau is now known as rpittau|afk18:14
*** joeljwright has quit IRC18:23
*** joeljwright has joined #openstack-swift18:25
*** ChanServ sets mode: +v joeljwright18:25
openstackgerritClay Gerrard proposed openstack/swift master: Allow internal clients to use reserved namespace  https://review.opendev.org/68213818:27
openstackgerritClay Gerrard proposed openstack/swift master: New Object Versioning mode  https://review.opendev.org/68238218:27
openstackgerritClay Gerrard proposed openstack/swift master: s3api: Implement object versioning API  https://review.opendev.org/67368218:27
*** spsurya has quit IRC19:30
kota_morning20:57
kota_no meeting?21:01
kota_hmm21:06
kota_let me quit and back to my bed today.21:06
kota_oic https://wiki.openstack.org/wiki/Meetings/Swift clearly says the next is Dec 4.21:08
kota_make sense21:08
kota_probably because of thanksgiving21:09
zaitcevProbably.21:53
*** rcernin has joined #openstack-swift21:56
mattoliveraumorning22:04
mattoliveraukota_: yeah, timburke said it was cancelled in last weeks meeting because of thanksgiving.22:04
*** pcaruana has quit IRC22:06
*** diablo_rojo has quit IRC22:08
*** baojg has quit IRC23:32

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!