Skip to content

Instantly share code, notes, and snippets.

View harryge00's full-sized avatar

Haoyuan Ge harryge00

  • Ant Financial
  • Hangzhou
View GitHub Profile
@harryge00
harryge00 / master.json
Last active May 25, 2020 09:22
redis master slave
{
"id": "/test/master",
"instances": 1,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "ccr.ccs.tencentyun.com/faw-d2iq/redis:5.0.5"
},
"portMappings": [
@harryge00
harryge00 / redis.conf
Created April 13, 2020 16:19
redis.conf
port 6379
dir /mnt/mesos/sandbox/redis-data
cluster-enabled yes
cluster-config-file nodes.conf
cluster-node-timeout 5000
requirepass ntt123
masterauth ntt123
timeout 0
tcp-keepalive 60
appendonly yes
@harryge00
harryge00 / failover-monitor.json
Created March 16, 2020 16:42
failover-monitor.json
{
"my-10001": {
"nodes": 3,
"username": "root",
"password": "123456"
}
}
@harryge00
harryge00 / my.cnf
Created February 11, 2020 06:13
mysql config
[mysqld]
port = 3306
back_log = 3000
character_set_server = utf8
max_connect_errors = 100
max_connections = 2000
max_user_connections = 2000
max_heap_table_size = 64M
max_allowed_packet = 1024M
max_binlog_size = 500M
@harryge00
harryge00 / my.cnf
Created February 11, 2020 06:13
mysql config
[mysqld]
port = 3306
back_log = 3000
character_set_server = utf8
max_connect_errors = 100
max_connections = 2000
max_user_connections = 2000
max_heap_table_size = 64M
max_allowed_packet = 1024M
max_binlog_size = 500M
@harryge00
harryge00 / gitlab-dcos.json
Created January 9, 2020 06:03
dcos gitlab json
{
"id": "/gitlab",
"constraints": [
[
"hostname",
"CLUSTER",
""
]
],
@harryge00
harryge00 / add-backend-frontend.py
Last active May 13, 2020 02:09
Add backend/frontend pair for DC/OS edge-lb pool
#!/usr/bin/env python
import json
import os
import toml
from os.path import expanduser
import requests
import argparse
import sys
import re
from urlparse import urljoin
@harryge00
harryge00 / haproxy.cfg
Created December 8, 2019 16:47
haproxy.cfg
global
daemon
log 127.0.0.1 local0 debug
maxconn 4096
#nbproc 1
pidfile /var/run/haproxy.pid
#pidfile /mnt/mesos/sandbox/CONF_SHARE_DATA/haproxy.pid
#chroot /usr/local/etc/haproxy
defaults

Intro

This guide will introduce how to use Tencent Cloud's object storage as a "proxy" for AWS S3.

Create a Tencent Cloud bucket

[mysqld]
port = 3306
back_log = 3000
character_set_server = utf8
max_connect_errors = 100
max_connections = 2000
max_user_connections = 2000
max_heap_table_size = 64M
max_allowed_packet = 1024M
max_binlog_size = 500M