Posts by tomleb@toot.cafe
 (DIR) Post #9yLrQJOcKl7v0fY2a0 by tomleb@toot.cafe
       2020-08-21T15:44:27Z
       
       0 likes, 0 repeats
       
       @sir I copied yours because it looked good enough, I'm not a designer (and I suck at it), and mostly because I was never writing anything before trying to get the best blog look. Just took yours, boom ready to write.
       
 (DIR) Post #9yYrYHDepw8bd8hNwG by tomleb@toot.cafe
       2020-08-27T22:17:07Z
       
       0 likes, 0 repeats
       
       @sir Can't improve the documentation if I can't send a plain text email /sI much prefer your approach to improving things.. Add more documentation and tutorials and use open tools.
       
 (DIR) Post #9yakYKtoqN2LgGQ8FE by tomleb@toot.cafe
       2020-08-28T20:08:28Z
       
       0 likes, 0 repeats
       
       @sir Made some this week, very good
       
 (DIR) Post #9ylBVwpbzs14nd8aiu by tomleb@toot.cafe
       2020-09-02T20:57:58Z
       
       0 likes, 0 repeats
       
       @ihabunek @wolf480pl That, or 20 commits with the same messageeg: Fix A, Fix A again, Fix A for real now
       
 (DIR) Post #9ylCk0VTEI4OCpz64e by tomleb@toot.cafe
       2020-09-02T21:12:38Z
       
       0 likes, 0 repeats
       
       @wolf480pl @ihabunek Assuming colleagues care enough about this. The software can't enforce sane git practices unfortunately.
       
 (DIR) Post #9z3OvzFXT89sFocI2i by tomleb@toot.cafe
       2020-09-11T15:52:31Z
       
       0 likes, 0 repeats
       
       @sir This should be a metric on the grafana dashboard
       
 (DIR) Post #9zIeeZlDUqo0NI7JZo by tomleb@toot.cafe
       2020-09-19T00:22:48Z
       
       0 likes, 0 repeats
       
       @sir currently waiting for a thinkpad T14 AMD. I know that feel.
       
 (DIR) Post #A0ztrHmW2qKj2fRTaS by tomleb@toot.cafe
       2020-11-03T00:44:33Z
       
       0 likes, 0 repeats
       
       @sir Recipe?
       
 (DIR) Post #A11WYzkEO3asaMwBkW by tomleb@toot.cafe
       2020-11-09T13:54:09Z
       
       0 likes, 0 repeats
       
       @wolf480pl ip_hash selects the upstream based on the client's IP address so in that case the client would stick to one upstream
       
 (DIR) Post #A11XiV7ZCRGsSSwv4q by tomleb@toot.cafe
       2020-11-09T14:07:20Z
       
       0 likes, 0 repeats
       
       @wolf480pl If you receive most requests from a single IP then ip_hash is not a good idea. The best idea might be to deploy the load balancer, wait for traffic, analyse what kind of traffic you receive and then tune accordingly.What is your expected load? Maybe you'll be bottlenecked on the load balancer first before even reaching the upstreams too
       
 (DIR) Post #A11ZB6UpvsPMRE2JgO by tomleb@toot.cafe
       2020-11-09T14:23:41Z
       
       0 likes, 0 repeats
       
       @wolf480pl Yeah you'll need sticky cookie to make them use the same upstream. But then if only 5s expiry then it's rpetty useless because well.. It's going to expire, so they'll reach another upstream.You could make them 'stick' to an upstream with ip_hash too, unless kids are at school under a single IP, then the load won't be spread.Why don't you want them to stick to the same upstream for too long?
       
 (DIR) Post #A11o4Qf83XDEGd7rSi by tomleb@toot.cafe
       2020-11-09T17:10:34Z
       
       0 likes, 0 repeats
       
       @wolf480pl In your case you need sticky for sure. I've never tried least_conn, maybe round robin is enough too.You could try simulating the traffic and see benchmark which handles it better
       
 (DIR) Post #A12LfwVhuCz0FCDMB6 by tomleb@toot.cafe
       2020-11-09T03:17:11Z
       
       1 likes, 0 repeats
       
       @sir Think of the children though /s
       
 (DIR) Post #A13Uv5dzK5D1f1LTIe by tomleb@toot.cafe
       2020-11-10T12:45:25Z
       
       0 likes, 0 repeats
       
       @wolf480pl Maybe you can find a community module that does the job.eg:- https://github.com/lusis/nginx-sticky-module- https://bitbucket.org/nginx-goodies/nginx-sticky-module-ng/src/master/
       
 (DIR) Post #A13ZABE7FSop8Sh8e8 by tomleb@toot.cafe
       2020-11-10T13:32:57Z
       
       0 likes, 0 repeats
       
       @wolf480pl You can  follow these steps: https://git.sr.ht/~tomleb/nginx-stream-upstream-time-module#buildMake sure you use the flags from the nginx that will be running on your machine.
       
 (DIR) Post #A13wuOPSre5oHx0YG8 by tomleb@toot.cafe
       2020-11-10T17:59:01Z
       
       0 likes, 0 repeats
       
       @wolf480pl Yes, I was also suprised about the nginx code. If you dig through the source code you'll find a nice quadriple(?) pointer. Neat.The second link I sent was from a google repository, so I would expect it to work fine and be secure enough. However, we're never too careful.Your use case seems simple enough that you could find another load balancer to do the job, or even code one yourself (eg: with golang's http module)
       
 (DIR) Post #A1fK0yxgXREU2qv8fw by tomleb@toot.cafe
       2020-11-26T02:28:50Z
       
       0 likes, 1 repeats
       
       @sir Your cat's existence
       
 (DIR) Post #A20i5FDCXYHEp1tyTI by tomleb@toot.cafe
       2020-12-09T01:12:48Z
       
       0 likes, 0 repeats
       
       @sir Having never bootstrapped before, what was the process like?
       
 (DIR) Post #A2G52lVGQT4QrAQaBM by tomleb@toot.cafe
       2020-12-16T12:18:47Z
       
       0 likes, 0 repeats
       
       @wolf480pl Might be a good idea to add tests to catch this kind of bugs in the future
       
 (DIR) Post #A2G6Tmr3bonQoy4Pse by tomleb@toot.cafe
       2020-12-16T12:34:52Z
       
       0 likes, 0 repeats
       
       @wolf480pl You're deploying to prod before doing code review?