bucket

Kafka技术内幕样章 层级时间轮

本文首发地址:http://zqhxuyuan.github.io/2016/05/13/2016-05-13-Kafka-Book-Sample-TimingWheel/3.4.4 定时器Timer那么Kafka的Timer定时器是如何存储DelayedOperation,又是如何在有任务超时的时候能准确地轮询出来。在Java中有多种方案可以做到任务的延迟执行,比如jav

[LeetCode] Top K Frequent Elements

Problem Given a non-empty array of integers, return the k most frequent elements. Example Given [1,1,1,2,2,3] and k = 2, return [1,2]. Note You may assume k is always valid, 1 ≤ k ≤ number

220. Contains Duplicates

题目: Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums[i] and nums[j] is at most t and the difference be

Ngin出现could not build the server_names_hash 解决办法

今天配置nginx的时候,配置语法都没问题,然而在重启nginx时候,却提示: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 128经过一些google之后,找到了解决方案。解决方法: 在配置文件的http{}段增加一行配置 server_n