ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
Package a java project with maven plugin | |
pom.xml | |
<modelVersion>4.0.0</modelVersion> | |
<packaging>jar</packaging> //here jar can be change to war depdends on what project is | |
<build> | |
<plugins> | |
<plugin> |
/* ******************************************************************************************* | |
* THE UPDATED VERSION IS AVAILABLE AT | |
* https://github.com/LeCoupa/awesome-cheatsheets | |
* ******************************************************************************************* */ | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html |
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
## Model classes | |
class Book(Base): | |
__tablename__ = 'books' | |
id = Column(Integer,primary_key = True) | |
book_id = Column(Integer,unique = True) | |
title = Column(String, nullable = False) | |
author = Column(String,index = True) | |
created_date = Column(DateTime,server_default = func.now()) |
# Convert nested model object to dict | |
def my_dict(obj): | |
if not hasattr(obj,"__dict__"): | |
return obj | |
result = {} | |
for key, val in obj.__dict__.items(): | |
if key.startswith("_") and key == 'metadata': | |
continue | |
element = [] |
Init...
CheckCPU: SSE2 support: yes
Checking setup...
Launching TeamViewer ...
Launching TeamViewer GUI ...
then the windows does not pop out
Solution: