openresty

Want to know openresty? we have a huge selection of openresty information on alibabacloud.com

Get the Go Program optimization practice with significantly improved performance, using the flame diagram

of locks that affect performance? At this time, it should be asked to off-cpu the flame diagram. OFF-CPU flame diagram, is used to analyze the program is not efficient use of the CPU when, where the consumption, here (http://www.brendangregg.com/FlameGraphs/offcpuflamegraphs.html) have a detailed introduction. The data collection is more complex than the ON-CPU flame diagram and can be used in the Openresty-systemtap-toolkit (Https://github.com/

Nginx+lua+redis

A system has recently been used with Nginx+lua+redis to support high-concurrency high-traffic applications. Development when suddenly thought Golang can also achieve the same effect. So I wrote a simple code comparison. Specifically not much to do introduction, online a lot about Nginx+lua+redis building high-concurrency application introduction. I'm using the Openresty+lua+redis. The test results are first posted, and the machine is th

Nginx + lua + redis

: This article mainly introduces nginx + lua + redis. For more information about PHP tutorials, see. Recently, nginx + lua + redis is used as a system to support high-concurrency and high-traffic applications. During development, I suddenly thought about whether golang could achieve the same effect. So I wrote a simple code comparison. I will not introduce it more. I will introduce nginx + lua + redis to build highly concurrent applications on the Internet. I am using

Nginx running php

/x-perl application/x-tcl application/msword application/vnd.ms-excel application/vnd.ms-powerpoint application/vnd.wap.xhtml+xml image/x-ms-bmp;#gzip_disable "MSIE [1-6] \.";gzip_vary on;output_buffers 4 32k;client_max_body_size 20m;server {listen 80;server_name localhost;charset utf-8,gb2312;access_log /home/ubuntu/log/access.log;location / {root /home/ubuntu/www;index index.html index.htm index.php;}location ~ \.php$ { fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;set $path_in

Extend your nginx with Lua (very well written)

relatively worst. With this simple test, you can see the high concurrency capability of Ngx_lua. Ngx_lua's developers have also done a test comparison between nginx+fpm+php and Nodejs, and the result is that Ngx_lua can reach 28000rps, while Nodejs has a bit more than 10,000, and PHP has the worst of 6000. There may be some configuration I did not match to cause Ngx_lua RPS not that high. Ngx_lua installation Ngx_lua installation can download module source code, compile Nginx, but recommend

Kubernetes How to Mount Ceph RBD and CEPHFS

: metadata: labels: app: test spec: containers: - name: test image: dk-reg.op.douyuyuba.com/op-base/openresty:1.9.15 ports: - containerPort: 80 volumeMounts: - mountPath: "/data" name: data volumes: - name: data persistentVolumeClaim: claimName: test-pvckubectl create -f test.dm.ymlStorageclass Way to create secretBecause Storageclass requires C

Nginx-based static Web page deployment

Background:A sequence of HTML pages needs to be deployedNginx-based deployment:The Openresty-based Nginx configuration is used in this paper.Simply configure Nginx configuration files so that when you start Nginx, you can enable these configurations to allow click-to-jump access for well-written HTML pages. And this is the focus of this article.Configuration Mode 1:Nginx configuration system consists of a master configuration file and some other auxil

Talk about API Gateway and Netflix Zuul

running, which require some common functions, such as authentication, flow control, monitoring, and log statistics.In traditional monomer applications, these functions are generally embedded in the application and run as a component. However, in microservices mode, there are dozens of or even hundreds of different types of applications that can run independently, and continuing to use this approach can result in very high management and publishing costs. Therefore, it is necessary to abstract a

Talk about API Gateway and Netflix Zuul

based on Openresty Kong, Go-based Tyk, and Java-based Zuul.There is no obvious difference between the three selection itself, mainly to see whether the technology stack can meet the rapid application and two development, such as our original technology stack is the use of Go/openresty platform group and the use of Java backend group, after discussion that the API Gateway The future is to deal with the busi

Kong personal Sharing (API Gateway)

# About Kong# # BackgroundWhen we provide API or microservices, we usually use openresty nginx for traffic forwarding or adding some rules or functions, but as the number of services and references increase, complex network environment,Making maintenance difficult, not easy to scale, some features being duplicated in multiple services, we expect a tool to be centrally managed. ! [] (Images/kong_arch.png)# # IntroductionKong is the API Gateway and AP

Site dynamic downline based on Nginx dyups module

traffic is particularly large, Nginx appeared on the short board when used, but the actual situation, generally rarely exhaust nginx performance, even if there, can also be achieved through the ngxin level expansion,So it's still using Nginx as load balancer. Here is the key point for this project: 1. Registration and health testing of services there is no technical difficulty, there is no explanation here. 2. On the operation of Nginx up and down line, here is a difficult point, because Nginx

Build nginx and lua development environment, nginxlua

Build nginx and lua development environment, nginxlua Download the installation file of the latest software version. Nginx: http://nginx.org/en/download.html LuaJIT: http://luajit.org/download.html Lua-nginx-module: https://github.com/openresty/lua-nginx-module/releases/tag/v0.9.16 Ngx_devel_kit: https://github.com/simpl/ngx_devel_kit/releases/tag/v0.2.19 [root@localhost src]# ll -ttotal 22408-rw-r--r--. 1 root root 65029 Sep 13 09:00 ngx_devel_ki

Nginx installs the echo module and nginxecho module.

Nginx installs the echo module and nginxecho module. 1. download the required echo ModuleHttps://github.com/openresty/echo-nginx-module/tags# Wget https://github.com/openresty/echo-nginx-module/archive/v0.60.tar.gz# Tar zxvf v0.60.tar.gz# Mv echo-nginx-module-0.60 tools/ 2. Install nginx# Wget http://nginx.org/download/nginx-1.10.1.tar.gz# Tar-zxvf nginx-1.10.1.tar.gz#/Application/nginx/sbin/nginx-V # view

PHP enables opcache to improve Code Performance

Performance Comparison: The following figure shows that opcache is not enabled in actual tests: ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 [Root @ localhost ~] # AB-n 10000-c 200 "http: // 112.126.69.14/main. php? A = Role m = createRole" This is apachetings, Version 2.3 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to Th

High-performance web system architecture solution

server. Similarly, Etag/If-None-Match cannot be used. therefore, if you want to use this scheme, you must use other comparisons to obtain the expiration time.6.2 set the gtm value of ExpiresString time = DateTime. now. addSeconds (10 ). toUniversalTime (). toString ("r"); Response. addHeader ("Expires", time); note that this method is only valid for the browser press Enter.6.3 Cache-Control: Set max-AgeResponse. AddHeader ("Cache-Control", "max-age = 10"); note that this method is only valid fo

An explanation of how to automatically generate Docker Nginx reverse proxy configuration using Python

('/usr/local/openresty/nginx/conf/vhost.conf ', servers) override ('/usr/loc Al/openresty/nginx/html/vhost.html ', " Start command: Nohup./docker.py >/dev/null 2>1 The program will run in the background, and it will not end if you disconnect SSH The main is to generate a conf file, the file to be introduced in the nginx.conf, and then each time a container start/stop to generate this file, and then res

Using API gateways to pipe up the API

At first, I was just looking for an API gateway to prevent the API from being maliciously requested, finding a lap to discover the Nginx-based openresty(Lua language) expansion module Orange is good (also found in Kong , but the feeling of complexity is useless), but also lazy to use Vagrant combined with Docker to quickly set up the environment, based on the dockerfile of others to run through the whole experiment, feel good. Think of As if CoreOS is

Fastdfs and Nginx Installation

ConfigurationModify Vi/usr/local/openresty/nginx/conf/nginx.conf server { listen 80; server_name localhost; charset utf8; location /M00 { alias /data/fdfs/data; ngx_fastdfs_module; } ...... Create a connection sudo ln -s /data/fdfs/data /data/fdfs/data/M00 Re-start Nginx Sudo/usr/local/openresty/

Copy file to Docker from Realhost

Http://blog.e3rp4y.me/blog/2014/05/23/copy-file-from-host-to-docker.html------------------------------------------------------------Docker is a Linux container management software.Let's talk about several ways to copy files from a host to Docker today.Before sharing, let's look at how strong the Docker community needs to be for this issue (JU).Below begin today the sharing of high (TU) Large (yuan) (FEI).1. Adding files via build Docker imageDocker image is created by Dockerfile. The specific cr

Python-what should I do if I have been studying various languages for five years when I was a PHP programmer?

I am a junior college student and a self-taught PHP + js. In its 5th year, I stayed in two companies. The first company stayed for three years. now this company has been around for two years. The first company learned the basic skills of WEB development in the lnmp environment, and learned python. and JAVA, JAVA is only part of a project... I am a junior college student and a self-taught PHP + js. In its 5th year, I stayed in two companies. The first company stayed for three years. now this comp

Total Pages: 15 1 .... 8 9 10 11 12 .... 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.