Last active
March 13, 2020 22:00
-
-
Save sedkis/5e98d9d010e4c61065b9ebbed870cc5e to your computer and use it in GitHub Desktop.
Final Benchmarking Confs - Fine Turned
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Tyk Test API", | |
"api_id": "1", | |
"org_id": "default", | |
"definition": { | |
"location": "header", | |
"key": "version" | |
}, | |
"auth": { | |
"auth_header_name": "authorization" | |
}, | |
"version_data": { | |
"not_versioned": true, | |
"versions": { | |
"Default": { | |
"name": "Default", | |
"expires": "3000-01-02 15:04", | |
"use_extended_paths": true, | |
"extended_paths": { | |
"ignored": [], | |
"white_list": [], | |
"black_list": [] | |
} | |
} | |
} | |
}, | |
"proxy": { | |
"listen_path": "/auth-api/", | |
"target_url": "", | |
"strip_listen_path": true, | |
"enable_load_balancing": true, | |
"target_list": [ | |
"http://10.0.0.174", | |
"http://10.0.0.101" | |
] | |
}, | |
"enable_batch_request_support": true, | |
"cache_options": { | |
"enable_cache": false, | |
"cache_all_safe_requests": false | |
}, | |
"disable_quota": true, | |
"disable_rate_limit": false, | |
"dont_set_quota_on_create": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum update -y | |
sudo yum install -y docker | |
sudo service docker start | |
sudo usermod -aG docker ec2-user | |
sudo docker ps | |
sudo su | |
docker network create tyk | |
docker pull tykio/tyk-gateway:latest | |
## copy tyk.standalone.conf | |
mkdir apps | |
## copy apps/auth_token_api.json | |
docker run -d \ | |
--restart=always \ | |
--name tyk_gateway \ | |
--network tyk \ | |
--ulimit nofile=80000:80000 \ | |
--log-opt max-size=10m \ | |
--log-opt max-file=5 \ | |
-e GOGC=1600 \ | |
-p 8080:8080 \ | |
-v $(pwd)/tyk.standalone.conf:/opt/tyk-gateway/tyk.conf \ | |
-v $(pwd)/apps:/opt/tyk-gateway/apps \ | |
tykio/tyk-gateway:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"listen_port": 8080, | |
"log_level": "warn", | |
"secret": "352d20ee67be67f6340b4c0605b044b7", | |
"template_path": "/opt/tyk-gateway/templates", | |
"tyk_js_path": "/opt/tyk-gateway/js/tyk.js", | |
"middleware_path": "/opt/tyk-gateway/middleware", | |
"use_db_app_configs": false, | |
"app_path": "/opt/tyk-gateway/apps/", | |
"storage": { | |
"type": "redis", | |
"host": "sedky-benchmark-elasticache.hrszx2.ng.0001.use1.cache.amazonaws.com", | |
"port": 6379, | |
"username": "", | |
"password": "", | |
"database": 0, | |
"optimisation_max_idle": 2000, | |
"optimisation_max_active": 4000 | |
}, | |
"enable_analytics": true, | |
"analytics_config": { | |
"type": "mongo", | |
"csv_dir": "/tmp", | |
"mongo_url": "", | |
"mongo_db_name": "", | |
"mongo_collection": "", | |
"purge_delay": -1, | |
"ignored_ips": [] | |
}, | |
"health_check": { | |
"enable_health_checks": false, | |
"health_check_value_timeouts": 60 | |
}, | |
"optimisations_use_async_session_write": true, | |
"enable_non_transactional_rate_limiter": true, | |
"enable_sentinel_rate_limiter": false, | |
"enable_redis_rolling_limiter": false, | |
"allow_master_keys": false, | |
"policies": { | |
"policy_source": "file", | |
"policy_record_name": "/opt/tyk-gateway/policies/policies.json" | |
}, | |
"hash_keys": true, | |
"close_connections": false, | |
"http_server_options": { | |
"enable_websockets": false | |
}, | |
"allow_insecure_configs": true, | |
"coprocess_options": { | |
"enable_coprocess": false, | |
"coprocess_grpc_server": "" | |
}, | |
"enable_bundle_downloader": false, | |
"bundle_base_url": "", | |
"global_session_lifetime": 100, | |
"force_global_session_lifetime": false, | |
"max_idle_connections_per_host": 500 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment