- 浏览: 2564780 次
- 性别:
- 来自: 成都
-
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
文章列表
PostgreSQL 2018(3)Trigger
Some tips about PostgreSQL
Check the session timeout
mysql>SHOW SESSION VARIABLES LIKE “%wait%”;
mysql>SET session wait_timeout=3000;
mysql>SHOW SESSION VARIABLES LIKE ‘wait_timeout’;
Check the triggers
mysql>select * from information_schema.triggers
How to ru ...
AMAZON DynamoDB(6)Autoscaling Configuration
We use Serverless framework to deploy our Lambda, so we can try to configuration the auto scaling for DynamoDB there.
I firstly want to do that on serverless.yml. I do the follow changes in serverless.yml
ddbCapaciies:
read:
int:
min ...
Grav CMS System(1)Install PHP7 on MAC
Download the latest PHP 7
https://secure.php.net/downloads.php
I download the latest version
http://am1.php.net/distributions/php-7.2.11.tar.gz
Unzip the file and I get php-7.2.11
Build the source file
> ./buildconf
It is said
You should not run buildcon ...
AMAZON DynamoDB(5)DynamoDB Stream
DynamoDB Stream + Lambda = Database Trigger
DynamoDB Stream will keep the messages for 24 hours. Only one record will be in the stream. Stream will follow the events time line order.
Enable streaming, for example
In overview of your DynamoDB console, there is strea ...
Circle CI build Project
Recently our company start to use Circle CI to build and deploy our projects instead of Jenkins. Frankly speaking, I am an old man. I use jenkins a lot, I used to be a “DevOps” for sometime, I am a developer for 15 years, so I know in detail how these codes are compile and bu ...
Lambda Subscribe SNS
- 博客分类:
- Summary
Lambda Subscribe SNS
One of my project is using serverless framework to deploy to AWS lambda, but it seems I followed the documents, but still I can not automatically make Lambda Subscribe SNS from he yaml configuration.
It seems to be a bug in serverless in the second link. Currently I will do tha ...
Install Docker and Tor Network and Proxy Service on CentOS7
How to run Tor network and Proxy Service
It is docker, so only thing we need on our target machine is docker. No tor, no proxy, no python, no java, just docker environment. This will do work for all the other docker applications as well.
So ...
Nginx Proxy Route by Query Parameter
Here comes our requirement, I need to route to different backend based on the URL query parameters. If parameter=1, I need go server1, parameter=2, I need go server2.
Here is how I test that
resolver 8.8.8.8;
set $ocpServer 'https://ocp.sillycat.com';
set $t ...
Apache2 and Nginx Server Address in Header
Recently I get a request which needs to send the server IP address(not client IP address) from Apache2 to Nginx, finally to our lambda Function.
It is not that easy to do this, first of all, that machine has about 4 IP, I have them all listed in the /etc/h ...
Virus Killing on MAC for weknow.ac
Last Friday, my Mac Pro get a virus called weknow.ac, it took my browser home page. It is bad, I never came across a virus on Mac before.
Here are some steps how I deal with it.
First I download free trial for Malwarebytes. I find and kill the virus (Maybe)
Then ...
Jfroge Artifactory 2018
Last time I install Artifactory, that is 2014, how time flies. Last time, I am using the war package directly under web container tomcat.
Currently, the artifactory contains all kinds of different version.
https://www.jfrog.com/confluence/display/RTF/Artifactory+Comparison+M ...
Nginx Hard Code Header Proxy to Next Server
Here is the syntax: proxy_set_header syntax: proxy_set_header header value;
Default: host and Connection
Context: http, server, location
I am using it here:
server {
listen localhost:8081;
client_max_body_size 10M;
# redirect pairing and stat ...
AWS Lambda and Serverless Timeout
Recently, we found a bug in my codes which the lambda function only delete parts of my resources in a for loop.
Finally we found out that because we are using for loop to delete 20 third party resources, it take about 1 second to delete 1 resources. After 6 seconds ...
Prettier on VSCode for TypeScript
I first tied the link, then I try the Cmd + P
>ext install esbenp.prettier-vscode
They all does not work, and I saw this error in VSCode
connect ENOENT /Users/xxx/Library/Application/Support/Code/1.26.1-shared.sock
Upgrade the VSCode Version to latest, restart ...
TypeScript and Lambda Serverless Project Limit
Recently, our project deployment met this exception while deploy
An error occurred: DevicePairingUpdatesLambdaFunction - Unzipped size must be smaller than 262144000 bytes (Service: AWSLambda; Status Code: 400; Error Code: InvalidParameterValueExceptio ...