{"thread":{"id":"58514","subject":"git daemon inetd mode: need traffic statistics","startedAt":"2022-09-26T04:21:54Z","lastAt":"2022-09-27T00:26:44Z","messageCount":2,"participants":["Robin H. Johnson","brian m. carlson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"463603","messageId":"robbat2-20220926T041714-401286569Z@orbis-terrarum.net","threadId":"58514","inReplyTo":null,"subject":"git daemon inetd mode: need traffic statistics","fromName":"Robin H. Johnson","fromEmail":"robbat2@gentoo.org","sentAt":"2022-09-26T04:21:46Z","receivedAt":"2022-09-26T04:21:54Z","isPatch":false,"sender":{"key":"robbat2@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/373898?v=4"},"body":"Has anybody got patchsets that let git-daemon send traffic data (to\nsyslog) at the end of each request, about the peer, and how many bytes\nin each direction?\n\nHoping somebody has something useful to share that isn't coming up in my\nresearch.\n\nGentoo's seeing a big uptick in usage on the anonymous git daemons via\nxinetd (we do offer HTTP/HTTPS as well, but the growth is in http).\n\nI know it's via the git/9418 protocol because the HTTP traffic is\nwell-metered and hasn't grown, and the overall traffic to the hosts also\ngrew. This is confirmed by using Netflow data, which tells me it's the\nGit port, and some of the IPs, but doesn't let me get which repo\ndirectly (And processing the netflow data is also painful).\n\n-- \nRobin Hugh Johnson\nGentoo Linux: Dev, Infra Lead, Foundation Treasurer\nE-Mail   : robbat2@gentoo.org\nGnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85\nGnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136\n"},{"id":"463688","messageId":"YzJDPNvi5rpN54E6@tapette.crustytoothpaste.net","threadId":"58514","inReplyTo":"robbat2-20220926T041714-401286569Z@orbis-terrarum.net","subject":"Re: git daemon inetd mode: need traffic statistics","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2022-09-27T00:26:36Z","receivedAt":"2022-09-27T00:26:44Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2022-09-26 at 04:21:46, Robin H. Johnson wrote:\n> Has anybody got patchsets that let git-daemon send traffic data (to\n> syslog) at the end of each request, about the peer, and how many bytes\n> in each direction?\n> \n> Hoping somebody has something useful to share that isn't coming up in my\n> research.\n\nI don't, sorry.  At work we use a custom proxy which provides this,\nwhich I can't share and probably wouldn't be of much use to you even if\nI could since it's very specific to our setup.\n\nMy impression is that typically most hosters are moving away from port\n9418 because it isn't encrypted or secured and anonymous HTTPS is just\nas easy to use.  As a consequence, git-daemon isn't typically seeing a\nlot of development since it is seeing less and less use.  Having said\nthat, I'm sure a patch to git-daemon implementing this feature would be\nwelcome, whether from you or from someone else.\n-- \nbrian m. carlson (he/him or they/them)\nToronto, Ontario, CA\n"}]}