Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High latency #22

Closed
simphide opened this issue Sep 1, 2020 · 3 comments
Closed

High latency #22

simphide opened this issue Sep 1, 2020 · 3 comments

Comments

@simphide
Copy link

simphide commented Sep 1, 2020

image

Latency

I am experiencing high latencies when I use the example docker compose file. Is this normal?

image

Normal latency

My normal latency is between 25 and 50ms...

Thanks in advance

edit: the latency in the cloudflared docker container is much much better:

image

Container latency

version: "3"

# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
  pihole:
    container_name: pihole
    hostname: home-server
    image: pihole/pihole:latest
    mac_address: '02:42:6a:57:70:bf'
    networks:
      pihole:
        ipv4_address: 172.21.0.2
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      #- "67:67/udp"  # DHCP Server
      - "80:80/tcp"
      - "443:443/tcp"
    environment:
      TZ: 'Europe/Berlin'
      WEBPASSWORD: 'XXX'
      DNS1: 172.21.0.3#5053
      DNS2: 172.21.0.3#5053
      ServerIP: 192.168.178.45
    # Volumes store your data between container upgrades
    volumes:
       - './etc-pihole/:/etc/pihole/'
       - './etc-dnsmasq.d/:/etc/dnsmasq.d/'
       #- './var-log/pihole.log:/var/log/pihole.log'
    dns:
      - 127.0.0.1
      - 1.1.1.1
    # Recommended but not required (DHCP needs NET_ADMIN)
    #   https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
    cap_add:
      - NET_ADMIN
    restart: unless-stopped

  cloudflared:
    image: crazymax/cloudflared:latest
    container_name: cloudflared
    hostname: cloudflared
    networks:
      pihole:
        ipv4_address: 172.21.0.3
    environment:
      TZ: 'Europe/Berlin'
      TUNNEL_DNS_UPSTREAM: 'https://1.1.1.1/dns-query,https://1.0.0.1/dns-query'
    restart: unless-stopped

networks:
  pihole:
    ipam:
      config:
        - subnet: 172.21.0.0/24
@crazy-max
Copy link
Owner

crazy-max commented Oct 15, 2020

@simphide Can you try with the latest release? (2020.10)

@simphide
Copy link
Author

I downloaded the latest image, but the latencys remain the same...

image

@crazy-max
Copy link
Owner

@simphide I have added a note about this. See https://github.com/crazy-max/docker-cloudflared#performance-issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants