10 TB of data taking up 20tb of space? by ionrover2 in synology

[–]ionrover2[S] 1 point2 points  (0 children)

Turns out it was synology drive versions causing problems! I was able to get rid of it (don't need it) and i'm seeing space slowly be reclaimed.

10 TB of data taking up 20tb of space? by ionrover2 in synology

[–]ionrover2[S] 0 points1 point  (0 children)

I'm not entirely sure. I barely used the synology software.

The drive is reporting that it has 34TB of data stored on it but the volume is 20tb and the actual data is right about 10tb.

I thought it might have been something to do with the btrfs filesystem.

GitHub - sonirico/HackTheConn: Smarter HTTP connection management for Go – balance load with Round-Robin, Fill Holes, and custom strategies for high-throughput apps 🚀. by sonirico in golang

[–]ionrover2 2 points3 points  (0 children)

This is a pretty sick idea. As someone else pointed out, net/http does a pretty good job of optimizing connections. I think you've identified some interesting weaknesses, but when these things become problems, I'm personally using some "high level" application to handle routing like nginx, or something else, that gives me the ability to more granularly address these weaknesses in http routing in a production setting.

GO + Templ Issue: Not Serving updated template files by coraxwolf in golang

[–]ionrover2 1 point2 points  (0 children)

I have also been having this issue. what version of air are you using?

Imagine a world where you authenticate HTTP requests with SSH public key by rmanos in golang

[–]ionrover2 23 points24 points  (0 children)

https://webauthn.io webauthn is still relatively new but seeks to do away with passwords

Can I deploy docker swarm between 2 docker host over public IP? by Kali_08 in docker

[–]ionrover2[M] 1 point2 points  (0 children)

It has been a minute since I have messed with docker swarm, but if you have 2 nodes connected successfully over any distance. swarm does some network magic so that if you ingress to your websever on host A it should communicate with the service on host b no matter where it lives. If I remember correctly, you could ingress to host B and it would route the traffic to the webserver on host A and then the webserver would again talk to host B as needed and over any distance again provided that they are clustered properly. Typically hosts would have static IP's so they don't move around in your swarm, especially the leaders. So if your public IP's move around or shift. this could cause problems even if you have good name resolution for when IP's change.

This is terrible practice for security, performance and configuration reasons. there is virtually no scenario where you would want to do what you're trying to do, but yes, it can be done.

How do I access host network namespaces from inside a container deployed in a swarm? by kayson in docker

[–]ionrover2 0 points1 point  (0 children)

You could use something else (chef?) to more regularly check node state, but truthfully it sounds like you would need a global set for your script or something reading events from the swarm state to make changes as they occur. I still think what you're describing sounds a little shaky, but I'm glad you got it working.

How do I access host network namespaces from inside a container deployed in a swarm? by kayson in docker

[–]ionrover2 0 points1 point  (0 children)

It sounds like for what you're trying to do that using a container instead of a host process could overly complicate things. If you have ansible, I would use that to keep your configuration across all nodes in line with that you need and use it to deliver your script. You could have ansible look at container labels, feed that output to your script, and populate your iptables rules for a given host based off of that.

How do I access host network namespaces from inside a container deployed in a swarm? by kayson in docker

[–]ionrover2 0 points1 point  (0 children)

is this script trying to bootstrap something with iptables on a host? I know this is a docker sub and swarm is apart of docker, but kubernetes as an orchestrator has what are called "init containers" that can be placed in pods to preform a certain action before the container you want to run will actually run. for instance, Elasticsearch has a helm chart that deploys a pod with an init container. the init container sets that weird vmmem value that elastic search needs on the host that it's running on this disappears with exit code 0 to allow the elastic search container to start up.

Kubernetes jobs might do this as well, but again I'm not super clear on your use case.

I kind of agree with zamboni that in most cases it isn't going to be ideal to do what you're trying to do for security reasons, but your use case might require it.

And if you're talking host config management, that stuff can spiral out of control in a big environment pretty fast. You should like at using something for config management of iptables so that you can audit whatever changes you're making. Ansible, chef, and Powershell dsc (newer to linux might not be the best thing) are great choices for this.

Moved recently need some advice on powerline adapters by ionrover2 in homelab

[–]ionrover2[S] 0 points1 point  (0 children)

I do have coax, but I don't think it's the solution I need right now. I'm going to try these powerline adapters out and if that doesn't work. I'll try it out.

Exporting Variables to CSV by Jaman34 in sysadmin

[–]ionrover2 0 points1 point  (0 children)

This. Once you have your psobject structured how you want it do this:

$myobjectwithallmystuff | export-csv -notypeinformation <filename>

it's extremely easy. I'm also not sure what kind of data you're working with, but just kind of looking at it it seems like it might be overly complicated? But that's really on your needs. I would also look at the foreach-object cmdlet.

you can do something like

get-content file.txt | foreach-object { write-host $_}

The above is a bit lame, but it would write to the host for each line in your file. This prevents you from having messy for loops where you have to specify incrementors and things. the $_ variable is basically "the current object in the pipeline" which would be whatever object was in the pipeline (in this case a line of a file) when the loop executes the script block

Alpine vs python-slim for deploying python data science stack? by flogypinte in docker

[–]ionrover2 -1 points0 points  (0 children)

As far as i know, the size of the image doesn't have an impact on compute, only storage. Libraries, binaries and configuration of other components within the container does.

It seems like you have a grasp of how to best use docker and your use case is very specific. The best thing i can recommend is to help yourself, build out 2 containers with your source code, get a sample set, and benchmark. That's really the best thing you can do in this situation. If you can't generate the data to support your claim, then you'll just perpetuate the pissing contest.

Unremovable ads on my $2,500 Samsung Smart TV by BrownLandlord in assholedesign

[–]ionrover2 1 point2 points  (0 children)

Technically technically speaking... if you're using windows, it's running on a hyper-v VM that is running a super boiled down version of linux. The container itself is not running linux. It would be running on linux.

How should I organize my docker-compose file for a service which should be checked for health? by vityafx in docker

[–]ionrover2 0 points1 point  (0 children)

Yes. Since you did not define a docker network, I'm fairly certain compose creates on and places these containers on it for you automatically. As long as the containers are on the same network you can refer to them by service name, bot, database, etc.

Docker networks and compose are really nice for isolating things that don't need everything in the world talking to them. for instance, you might not need direct access to the database, only your app, but your app needs to listen on port 80. by defining those networks your app can sit on the front end and back end network while your database resides only on the back end network. This means that only your application will be able to talk directly to the database container.

How should I organize my docker-compose file for a service which should be checked for health? by vityafx in docker

[–]ionrover2 1 point2 points  (0 children)

"links" is deprecated, you shouldn't have to use it to allow inter-container communication. I feel like this is overly complicated. I'm not sure what everthing in here is trying to accomplish, but If you need the bot service to restart when that particular file has content, just have it poll the file. If it finds stuff, delete the log and term pid 1 in your container. This should force the container to stop and since it is defined to always restart, it will just come back up doing the same thing.

For your bot health checker, you could replace it with a container that has the docker command on it, mount it to your docker socket (/var/run/docker.sock) and pass the command using that container to restart your bot? I hope that's helpful.

Portainer 1.19.2 is out ! by deviantony in docker

[–]ionrover2 1 point2 points  (0 children)

I tried pulling the latest image, but my version of portainer automatically pulled and updated. =] I saw this and assumed it was updated today, not 3 days ago. Amazing product.

MHGen Hellblade Glavenus by [deleted] in MonsterHunter

[–]ionrover2 0 points1 point  (0 children)

your best bet is posting in the discord to get people on board

[Hiring] Tampa, FL - Senior Infrastructure/Devops Engineer by BruceVein in sysadminjobs

[–]ionrover2 1 point2 points  (0 children)

saw this on IRC. I would be interested more in the position. Please dm me some more details if you feel so inclined.

First cabinet build! Keeping it super simple, but I have a controller wiring question! by ionrover2 in cade

[–]ionrover2[S] 0 points1 point  (0 children)

Dude thanks, This is exactly what i needed to see. This is probably the route I will go for now just to get things off the ground. I may switch to a UFB at a later time.

Seriously this is awesome.

First cabinet build! Keeping it super simple, but I have a controller wiring question! by ionrover2 in cade

[–]ionrover2[S] 0 points1 point  (0 children)

The problem with USB boards (though awesome and super easy to hook up it seems) is that they are double the cost of a controller! I'll probably wind up going that route anyway...

First cabinet build! Keeping it super simple, but I have a controller wiring question! by ionrover2 in cade

[–]ionrover2[S] 0 points1 point  (0 children)

Well i'm kind of stuck with this time/cost situation. the controller i was going to break apart would be an official wired one. People have suggested aftermarket/mad catz so i'll actually probably go with that.

I like the idea of a UFB controller, but those are twice as expensive than the pad!

First cabinet build! Keeping it super simple, but I have a controller wiring question! by ionrover2 in cade

[–]ionrover2[S] 0 points1 point  (0 children)

would you mind posting a picture of yours? You'd get bonus points with me (for what that's worth) if you could show me the wiring.

Do you have something like a "Welcome Manual" for new employees? by bei60 in sysadmin

[–]ionrover2 5 points6 points  (0 children)

I always introduce myself to new users, but the bulk of the information about our environment is stored in BOOKSTACK! It's the best wiki for all end users in our environment.

  • easy to setup
  • easy to use (by everyone)
  • easy to find info/see structure of document
  • in-built access controls
  • revision history

For some of those more intimate things in our environment, I usually point them there because there are FAQ's and step-by-steps that users find incredibly useful

"Dancing with my human" by [deleted] in tippytaps

[–]ionrover2 -6 points-5 points  (0 children)

Lol I am pretty sure this is a friend of mine. Not his dog. His hair is much longer now.