by lifeisstillgood · 13y ago · 0 comments
If we rephrase the blog post as "we could not find any good tools in the Windows devops space so we wrote them" and add it to the departure of the only CEO willing to dance on stage chanting developers developers developers and Windows is not an ecosystem but a hub with a few brave outlying satellites.
I am impressed by the stacke change folks and their story and skills but it feels like amazing stories of software skill written for one company and never released in the open - it just leaves no legacy
As far as what we do at Stack, a lot of our code gets released. Not the core q&a engine, but our logging framework (StackExchange.Exceptional), a profiler (MiniProfiler), and some other stuff. On the sysadmin side, we are active in developing Desired State Configuration modules and contribute those to the PowerShell.org DSC repo on GitHub. Part of the job description for our SRE developer includes the fact that much of what we develop in house will be targeted to be open sourced.
For instance, a key problem I had in a prior gig was that I needed to automatically log into a Windows machine, run a job, and then log out. Pretty bog standard; didn't need careful error recovery or anything particularly sophisticated.
In Linux, you configure your SSH keys, then ssh automatedjob@server -c "./run-my-thing", and that's that. I literally could not find any identical analog in Windows besides telnet (if anyone knows of a solution here that approximates the Linux one for simplicity, I'd love to know about it). Today I'd probably just requisition a copy of a Windows SSH server and be done with the sorry mess. Better yet, throw Windows out and go full Linux. ;-)
He is also priming out infrastructure for Desired State Configuration (configuration management (like Puppet/Chef) for Windows).
I'm glad its working for you, I use stackexchange daily and am generally quite happy with it!
That I was hired as a Windows specialist was so that we can go deeper on the OS side and the PowerShell side, just as we have a Linux expert to go deeper on the Linux side. Our sysadmin team was just more tilted with experience on the Linux side (though you wouldn't know it - as almost everyone I work with would qualify as a senior admin in any Windows shop in the world).
Now, I was pretty sure you could use WMI to do this, and looking around I found this -
http://4sysops.com/archives/three-ways-to-run-remote-windows...
and this
http://blog.commandlinekungfu.com/2009/05/episode-31-remote-...
Remote PowerShell is probably 'the way' Microsoft will be pushing now
http://msdn.microsoft.com/en-us/library/windows/desktop/ee70...
What was happening is that there was a job controller running on Linux that needed to contact the Windows machine and boot the job into action. One solution would have been to install a Jenkins slave instance, which turned out to be the solution eventually adopted.
[1] It's been a few years since I studied this, but it was a known issue in '08/09 or so.
Also, iirc, using the psexec interface from Linux in a Linux->Windows connection does not work (a wrinkle in the original story is that it was a Linux->Windows connection).
I seem to remember doing clever things with WSI for just such a thing curiously I am pretty sure there will be examples of both on StackOverflow ;-)
Edit : oh yes WMI and psexec - amazing how quickly things drop out of your brain.
We've developed approach using Chef that spans Linux and Windows boxes.
To log in and run some script on Windows boxes, we use WinRM, which is integrated with Chef knife tool and works almost as well as SSH.
* Set the firewall to only allow telnet access on a private subnet
* Set the vpn connection to use that subnet
* login from any computer that supports telnet and PPTP.
Windows will die, to make way for Azure and Windows Phone.
The Microsoft development ecosystem is strong (C# in top 10 of TIOBE index). It has open source released by Microsoft (ASP.NET MVC), 3rd parties (Mono by Xamarin), and the community (opensourcewindows.org). Microsoft includes open source libraries (jQuery) in their projects.
StackExchange's software will leave a legacy.
From the article: "In order to create more, and open source it we need help. So we are looking a full time developer with ops experience to join our SRE team."
MiniProfiler is my favorite one, and now exists in .NET, Ruby and Node.js due to my insanely smart co-workers.
SE has a very high reputation as far as I can tell so its not a quality issue - it is in this case a problem of quantity.
As someone commented the idea is to focus on Azure and mobile - but that is no substitute for lots and lots of developers in a culture of releasing stuff outside their immediate company and so driving each other to new heights
ASP.NET MVC has definitely been a big factor with this on the web development side.