Skip to main content

Posts

hardware - Capacity planning for an enterprise java application

itemprop="text"> If you had to do capacity planning and hardware sizing "BEFORE" you had a chance to actually code and test the application (typically while you are defining solution architecture), how would you do it? I know this can not be known accurately beforehand but the point is to present the approach at an early stage (including questions you need to ask, assumptions you need to make). All you know, it will be an enterprise java application with App server, Web Server, Database. Business has given some number of concurrent "USERES" say 1000. Also assume that you will get a chance to fine tune your numbers after load testing the application but you can't be far off from the original estimates. itemprop="text"> class="normal">Answer All you can base

hardware - Capacity planning for an enterprise java application

If you had to do capacity planning and hardware sizing "BEFORE" you had a chance to actually code and test the application (typically while you are defining solution architecture), how would you do it? I know this can not be known accurately beforehand but the point is to present the approach at an early stage (including questions you need to ask, assumptions you need to make). All you know, it will be an enterprise java application with App server, Web Server, Database. Business has given some number of concurrent "USERES" say 1000. Also assume that you will get a chance to fine tune your numbers after load testing the application but you can't be far off from the original estimates. Answer All you can base it on is experience with "similar" applications. And that's not likely to give you good estimates. If you have no such experience, or cannot get numbers from a "comparable" system in production elsewhere, you're up a

Error adding child Active Directory domain to existing forest

itemprop="text"> I'm building a test environment containing multiple Active Directory domains in the same forest, but I'm having strange issues while trying to add a child domain to the forest root domain. All servers are Windows Server 2012 R2 VMs running on the Azure cloud platform, connected to the same virtual network; they have statically reserved IP addresses and they can talk to each other without any networking issue. My domain structure is (or at least should be) as follows: A0.lab (forest root) B0.lab / \ / \ A1 A2 B1 B2 | | A3 B3 Thus: A0.lab (forest root) A1.A0.lab A2.A0.lab A3.A1.A0.lab B0.lab B1.B0.lab B2.B0.lab B3.B1.B0.lab I've created the forest root domain (A0.lab) successfully and I've defined an AD site and its subnet; the domain is operating correctly. Nex

Error adding child Active Directory domain to existing forest

I'm building a test environment containing multiple Active Directory domains in the same forest, but I'm having strange issues while trying to add a child domain to the forest root domain. All servers are Windows Server 2012 R2 VMs running on the Azure cloud platform, connected to the same virtual network; they have statically reserved IP addresses and they can talk to each other without any networking issue. My domain structure is (or at least should be) as follows: A0.lab (forest root) B0.lab / \ / \ A1 A2 B1 B2 | | A3 B3 Thus: A0.lab (forest root) A1.A0.lab A2.A0.lab A3.A1.A0.lab B0.lab B1.B0.lab B2.B0.lab B3.B1.B0.lab I've created the forest root domain (A0.lab) successfully and I've defined an AD site and its subnet; the domain is operating correctly. Next, I've configured the server which should become the domain controller

apache 2.4 - apache2 mod-php cpu 100% on process

I have a VPS Debian server with Apache 2.4.10 mod-php. Server starts normally, but after some time I get 100% cpu on one of www-data processes and a web-server becomes unavailable. I tried strace on that procces and I got an infinite loop of these lines: poll([{fd=93, events=POLLIN}], 1, 3000) = 1 ([{fd=93, revents=POLLHUP}]) read(93, "", 13160) Then I tried lsof ant got this: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME apache2 1134 www-data 93r FIFO 0,8 0t0 3176528027 pipe What can cause the problem? When I restart apache, after some time I have the same behavior.

apache 2.4 - apache2 mod-php cpu 100% on process

I have a VPS Debian server with Apache 2.4.10 mod-php. Server starts normally, but after some time I get 100% cpu on one of www-data processes and a web-server becomes unavailable. I tried strace on that procces and I got an infinite loop of these lines: poll([{fd=93, events=POLLIN}], 1, 3000) = 1 ([{fd=93, revents=POLLHUP}]) read(93, "", 13160) Then I tried lsof ant got this: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME apache2 1134 www-data 93r FIFO 0,8 0t0 3176528027 pipe What can cause the problem? When I restart apache, after some time I have the same behavior.

git, nagios and hooks, corrupted git repo

itemprop="text"> Background We're using nagios to monitor our infrastructure. We don't have the nagios configs under version control at the moment, and there are two of us that manage nagios configuration. As such, I'm working to get our nagios config into a central git repo, using some hooks to do syntax checking and then if the configs look good, make them "active". I'm using rel="noreferrer">this guy's post as a starting point. The general workflow I'm trying to implement is: Edit local git repo of nagios config. Add edited files, commit locally. git push origin master to the remote repo. Push is intercepted by the pre-receive hook, which takes the files, moves them to a temporary directory on the server, and runs them through the nagios syntax c

git, nagios and hooks, corrupted git repo

Background We're using nagios to monitor our infrastructure. We don't have the nagios configs under version control at the moment, and there are two of us that manage nagios configuration. As such, I'm working to get our nagios config into a central git repo, using some hooks to do syntax checking and then if the configs look good, make them "active". I'm using this guy's post as a starting point. The general workflow I'm trying to implement is: Edit local git repo of nagios config. Add edited files, commit locally. git push origin master to the remote repo. Push is intercepted by the pre-receive hook, which takes the files, moves them to a temporary directory on the server, and runs them through the nagios syntax checker. If the syntax checker passes, accept the push, then use the post-commit hook to git pull the new code into the live nagios configuration directory and then restart nagios. If the syntax checker fails, reject the push, showing the

Nginx proxy pass works for https but not http

itemprop="text"> I want to redirect HTTP traffic and HTTPS traffic to a backend Flask application and I have the snippet below in my nginx.conf which works for https but not for http server { listen 80; listen 443 ssl; ssl_certificate /usr/local/nginx/server.crt; ssl_certificate_key /usr/local/nginx/server.key; location / { proxy_redirect off; proxy_cache off; proxy_pass http://127.0.0.1:5000; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } Does anyone have any pointers? Is there something obvious in the config file snippet or did I install Nginx wrong? Thanks! Answer I installed nginx on my Redhat16 machine from yum. After I removed the contents of the etc/nginx/conf.d direc

Nginx proxy pass works for https but not http

I want to redirect HTTP traffic and HTTPS traffic to a backend Flask application and I have the snippet below in my nginx.conf which works for https but not for http server { listen 80; listen 443 ssl; ssl_certificate /usr/local/nginx/server.crt; ssl_certificate_key /usr/local/nginx/server.key; location / { proxy_redirect off; proxy_cache off; proxy_pass http://127.0.0.1:5000; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } Does anyone have any pointers? Is there something obvious in the config file snippet or did I install Nginx wrong? Thanks! Answer I installed nginx on my Redhat16 machine from yum. After I removed the contents of the etc/nginx/conf.d directory, everything worked as expected. It seems something in that directory was overruling the http proxy_pass.