At CodeProject we spend an awful lot of time playing with room heaters, or as others like to call them, "servers". Over the years we've seen it all, some of it smoking, most of it usually working just nicely until something happens.
What that something is can be hard to find so we've created a quiet place for those battle scarred and frustrated to get a little help.
Suppose you purchase a piece of server software and install it on a machine. Now, ideally I would like to tie it to the underlying machine, but it may not be a machine at all, it may be a VM.
Now, if you want to start up a second instance, I want to ensure that you are paying for that second instance. Because of this, I need to find a way to distinguish them even though the underlying hardware may be the same.
I thought of using the PC name, but even that may be problematic because I can't be totally sure that *ALL* cloud vendors (hence, not just the VM vendors, but also their customers who, in turn, become sellers to my customers) will allow to change it.
I'm a freelance, junior sys-admin who is currently tasked with setting up the hardware for a tech startup. We're hosting a software service and need a system solution that makes sense within our budget and requirements.
The ideal goal would be n + 1 design, high security, long-term high availability without breaking the bank. Budget is ~6k for initial round of investment towards gear only. Additionally funds will be allocated for a year of quarter rack space in a datacenter local to my location.
I'm a bit over my head with my current knowledgebase, and intend to bridge the gap with a lot of pre-planning over the next 60 days. I figure 60 days before ordering any gear, 30 days to have it all come in, and get it initially configured at the datacenter, then 90 days to build out our hosting interface and properly test the system before going production. 6 months would be nice, but 8 months is being allocated for project.
Okay, so onto the gear and setup:
(2) Cisco SG-300-10 Switches, 1 wired & active, the second rack-mounted ready for wiring in case of failure.
Primary <> Secondary
With heartbeat in load-balancing + fail-over mode
Primary <> Secondary
Configured in PFsense for failover
A 4:1 ratio of active to failover App/Data Servers. I think failover can be configured with the Nginx Load-Balancer else PFsense.
Initial deployment is the two firewalls, two LBs, and 4+1 App/Data servers, with expectations to grow more App/Data as demand increases.
The service runs on LEMP stack. A master to master MySQL link between each A/D and the failover exists on separate partitions, separate instances of MySQL. It continuously synchs database with each active A/D, ready for activation in the event a LB declares an active dead. Higher resources in the form of more memory, higher thread count CPU, and n(A/D) hard disk space is allotted for failover.
Additionally, I plan to use an Anycast DDos prevention serviced by my colocation provider. I am wondering what drawbacks there are to my model.
The first 3-4 months is designing and deploying the system, the next 3-4 is linking the system to the software with the developers so that we can auto-provision services. I plan to utilize scripts heavily for this.
Should be easily do-able via tunneling. VPN on AC1 alone won't get your BS1 server a good route back to AS1. If it's a simple web service that doesn't require a lot of security, you could always give AS1 a real internet addressable address (from your ISP) and BS1 can access AS1 web service over the web. The thing about web services is that they typically aren't blocked by firewalls, but you still need to have an IP address facing the internet for AS1.
It depends what you need or want from your server. And, btw, a third option "between" these two, is a Virtual Private Server (VPS) which, IMO, is as good a dedicated server (but much cheaper) unless your site is particularly large (or attracts lots of traffic) or resource heavy.
But the main advantage of a VPS or dedicated server is that you have full (virtual) control over the server, so can configure it as you want - obviously only an advantage if there is something particular you need to configure - and that you can also install and run your own programs (exe's) in the background to perform all sorts of related tasks.
I first thought of SNMP, but that's obviously wrong (you need to know the tcp/ip address before you can query a device about its abilities) ... SNMP does have a discovery process, but Im not sure how it works
(I used to have a discovery tool based on WNETEnum ... that fed the data to Visio to draw, but have log lost where I put it - it was a DDJ tool, and I cant recall if it did switches or just 'anything ip')
Check out SPLUNK while you're at it and see if it does discovery
Im not sure what your motivation is Richard - if you were being paid, and had to write a tool (that was cheaper than SolarWinds for example), Im sure you could gather a list of all the tcp/ip addresses on your network, and then reduce/filter the list perhaps (eg remove PC's, printers ...) , leaving a list of addresses you could then issue SNMP calls against (for instance) ... thats what I would do
a. I have a Sony Vaio Notebook with a nearly full 256GB SSD drive, 8GB Ram - its seems like its quick to overheat and shuts itself down frequently, especially if there's a lot of network traffic
b. I have a MacBook Pro, 15", 500GB SSD
c. I cant afford to purchase a new system (Windows or Mac) AND I'd like to migrate the 'content' off the Sony Vaio
My plan/thoughts goes something like this
Upgrade the SSD in the Macbook Pro to 2TB
Install Mac Parallels on the MacBook Pro
Import the Sony Vaio as a VM onto the MacBook Pro (yeah, its going to be a mutha of a VM)
If the 'Vaio VM' is usable, good, if not, continue
Create a new Windows 7 VM on the MacBook under Parallels (maybe on an external drive), Install VS 2015 Onto it (the Sony Vaio only has VS2010 on it)
If I can get past step (3), my big worry is if Parallels can actually handle a VM that size
Any thoughts ? or do I download the 14 day trial of Parallels and 'jfgowi' (just freaken get on with it)
I hope you feel better soon! One of my friends has a Hyper-V VM with a 64 TB drive and it works fine (he is using a RAID system to store it). I don't know what he has on it, but I do know it is about half full.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
I have installed SQL server 2008 R2 and I have created databse engine instance. I am configuring mail setup. What should be in the field of server name? I am new to this and don't know what to put there. Please help me out.
On New Database Mail Account screen, for Server Name specify your SMTP Server name like
Hotmail: SMTP server name: smtp.live.com, Port number: 587
Gmail : SMTP server name: smtp.gmail.com, Port number: 587
Yahoo : SMTP server name: smtp.mail.yahoo.com,Port number : 25
AOL : SMTP server name: smtp.aol.com, Port number : 587
The server requires a secure connection (SSL) - check this box
At home I got Windows 10 Pro.
I also have Hyper V with a few virtual machines, including another (virtual) Windows 10 (pro) machine.
I am trying to share file between the two! Doesn't work!
My VM use an External (Virtual) Network switch
On my local (real) PC I have a file share available to everybody (read/write access).
On my VM, in the file explorer > network, I can see my (real) PC, but I can't open the file share!!
OK.. so I have an application built on the .NET 2.0 framework with a MySQL database which needs to run on a 64-bit Windows 2008 Server (with service Pack 1)
After installing it, in order to get it to run, I have to go to the application pools in IIS, find the relevant one, click on Advanced Settings, and set "Enable 32-bit applications" to True.
That works - otherwise I get a "Server Error in '/' Application. ... is not a valid Win32 application" page.
Trouble is though, as soon as I do set this, while simple pages display al;right, as soon as I get to one that requires database access I get this error:
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
If I set "Enable 32-bit applications" to False, I can run a simple test page that access tha database (uncompiled, with inline server code) and this works fine - so the connector is working adn the connectionstring correct.
All of which kind of leaves me between a rock and hard place. Any ideas gratefully received!
You've created an ODBC data source using the 64-bit version of the ODBC Administrator tool. You need to create it in the 32-bit version of the tool, which is located at: %SystemRoot%\SysWOW64\odbcad32.exe
You have to check with the hosting services in what way MySQL configured...You have two main options...
1. MySQL accessible only from applications running on the hosted server...
2. MySQL made public and you can use it from the outside world...
In my experience it is always the first option you get...
But! also in this case you can access your data from outside, by adding a layer - of some API - of software to it...
Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.
"As i understand your MySQL Database is Hosted somewhere using a Professional hosting company. These companies wont just allow outside connections even you knew your DB login credentials"
Yes, you are right ... and yes, I already added my IP in the server white list .. not working ! And the solution given by the server administrators was to buy a VPS hosting on their server, or a dedicated server ... for me, in this stage, is not worth it ... I wonder if there exist another workaround ... ?
I have developed a windows service and deployed the same in the server. This service is running in local machine without any issues. The service in the server, stops abruptly and below are some errors that I could capture in the EventViewer
Faulting application name : MyAppService.WindowsService.exe, version: 220.127.116.11, time stamp: 0x5537a89d
Faulting module name : clr.dll, version:4.0.30319.18063
Exception Code : 0xc00000fd
Faulting application path : D:\App\MyAppService.WindowsService.exe
Faulting module path : C:\windows\Microsoft.NET\Framework\v4.0.30319\clr.dll