I have updated TYK 3.1.2 and TYK Pump 1.2.0. TYK Pump has stopped working for us, with elasticsearch / kibana 6.8.6. We have verified after various tests that it is the TYK Pump version. Don’t create the index tyk_analytics in elasticsearch. I upload proof of concept to reproduce the problem. The commented versions inside docker-compose are the old versions, that work fine.
< docker-compose>
version: “3”
services:
elasticsearch:
image: elasticse`Preformatted text`arch:6.8.6
networks:
- es
ports:
- 9200:9200
environment:
- "ES_JAVA_OPTS:-Xms512m-Xmx512m"
- discovery.type=single-node
kibana:
image: docker.elastic.co/kibana/kibana:6.8.6
networks:
- es
ports:
- 5601:5601
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
depends_on:
- elasticsearch
redis:
image: redis:6.2.1-alpine
networks:
- tyk
pump:
image: tykio/tyk-pump-docker-pub:latest
#image: tykio/tyk-pump-docker-pub:v0.8.3
depends_on:
- redis
- elasticsearch
networks:
- tyk
- es
volumes:
- ./data/pump/pump.json:/opt/tyk-pump/pump.conf
tyk:
image: tykio/tyk-gateway:v3.1.2
depends_on:
- redis
networks:
- tyk
ports:
- 8080:8080
tty: true
volumes:
- ./data/tyk/apps:/opt/tyk-gateway/apps
- ./data/tyk/policies/policies.json:/opt/tyk-gateway/policies/policies.json
environment:
- TYK_GW_ENABLEANALYTICS=true
- TYK_GW_HEALTHCHECK_ENABLEHEALTHCHECKS=false
- TYK_GW_SECRET=foo
command: tyk
networks:
tyk:
driver: bridge
es:
driver: bridge
<pump.conf>
<
{
“analytics_storage_type”: “redis”,
“analytics_storage_config”: {
“type”: “redis”,
“host”: “redis”,
“port”: 6379,
“optimisation_max_idle”: 100,
“optimisation_max_active”: 200,
“enable_cluster”: false
},
“purge_delay”: 5,
“health_check_endpoint_name”: “hello”,
“health_check_endpoint_port”: 8083,
“pumps”: {
“elasticsearch”: {
“type”: “elasticsearch”,
“meta”: {
“index_name”: “tyk_analytics”,
“elasticsearch_url”: “http://elasticsearch:9200”,
“enable_sniffing”: true,
“document_type”: “tyk_analytics”,
“rolling_index”: false,
“extended_stats”: false,
“version”: “6”
}
}
},
“dont_purge_uptime_data”: true
}
Thanks, Greetings