V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  perfectlife  ›  全部回复第 11 页 / 共 30 页
回复总数  592
1 ... 7  8  9  10  11  12  13  14  15  16 ... 30  
公司用的 tableau 和 metabase
325 天前
回复了 ashtwo 创建的主题 问与答 redis 集群 IP 变更后, Java 服务连接错误
@ashtwo #9 这种使用是对的,会把 redis-cluster-1.redis-service 解析为对应 pod ip ,redis 重启后, redis-cluster-1.redis-service 解析为新的 pod ip 是没有毛病的,你现在这种用法服务始终能通过 core dns 解析获取最新的 redis pod ip , 唯一影响因素,dns 缓存,local dns 服务
327 天前
回复了 ashtwo 创建的主题 问与答 redis 集群 IP 变更后, Java 服务连接错误
同意 2 楼观点,用法不对。你们是拿 pod ip 用的么,应该使用 k8s service ip 访问。
@wchhm 对,简单粗暴一点
这段代码实现了一个简单的线程池( goroutine pool )。

在这个线程池中,有多个 goroutine (即上面代码中的 Worker ),它们不断地从一个 job 队列(即 Pool 结构体中的 jobQueue )中获取任务,并执行相应的操作。同时,这个线程池还提供了一个 Submit 方法,可以将具体的任务(即实现了 Job 接口的结构体)提交到 job 队列中。当所有的任务都被执行完毕后,可以调用 Shutdown 方法来关闭整个线程池。

在这段代码中,我们定义了一个 PrintJob 结构体,它实现了 Job 接口的 Do() 方法,在该方法中输出一段指定格式的字符串。我们使用这个 PrintJob 来模拟一个需要复杂处理的任务,然后将 10 个这样的任务提交到线程池中进行处理。

需要注意的是,在线程池中,由于所有的 goroutine 是并行运行的,因此无法保证任务的执行顺序和完成时间。如果需要控制任务的顺序或者依赖关系,就需要在代码中增加相应的控制逻辑。
@cksspk 你知道密码,就密码登录,不知道密码就先加上 skip-grant-tables ,容器内登录修改密码,然后注释了 skip-grant-tables 在登录
@cksspk 可能和 skip-grant-tables 有关系,参考下 https://blog.csdn.net/m0_56007820/article/details/125769471 这个
328 天前
回复了 ackmanfork 创建的主题 问与答 端午节去 女朋友家里,求推荐白酒
@Sting1226 要是一大家子喝肯定不够,他老丈人一个人喝 足够了
328 天前
回复了 brader 创建的主题 程序员 今天看朋友失业金才知道我被单位坑了,靠
@brader 见人见智吧,没说你错,只是合同里不包含工资组成,签的时候就该提出来,第一个月拿到工资条也可以不接受找 hr 询问,毕竟自己吃亏的事 应该早早提出来
@cksspk 猜测是因为网络问题,你看下 show variables like 'port'; 这个是不是显示 0 ,show variables like 'skip_networking'; 这个是不是为 No
@cksspk 可以贴一下你的 mysql 配置文件么
328 天前
回复了 ackmanfork 创建的主题 问与答 端午节去 女朋友家里,求推荐白酒
@ackmanfork 每天喝的属于口粮酒,一般都是平价,但是感觉你端午去拜访,买这种不合适,不如两瓶高端点的酒
328 天前
回复了 brader 创建的主题 程序员 今天看朋友失业金才知道我被单位坑了,靠
说句不好听的,你入职时候 /工作过程中 主动 /被动 同意了这种发放方式 ,再说别的就没意义了
我还是愿意选飞机户,几个卧室挨着 住着也不舒服
328 天前
回复了 ackmanfork 创建的主题 问与答 端午节去 女朋友家里,求推荐白酒
两瓶不够喝不至于吧,一般人一斤就不少了,2000 正好可以买两瓶普五
试试直接用 host 网络,docker-compose.yml 中用 network_mode: "host"
330 天前
回复了 AaronLee 创建的主题 Docker 如何自动给 docker image 打标签?
@AaronLee 你可以用这个工具( https://github.com/docker/hub-tool ) 获取镜像 tag


➜ hub-tool hub-tool tag ls postgres
TAG DIGEST STATUS LAST UPDATE LAST PUSHED LAST PULLED SIZE
postgres:latest sha256:3f1669847a14d6a9dede99716a4256cbc08d919a712710883a0d0420aa5e957b active About an hour ago About an hour 5 minutes 1.097GB
postgres:bullseye sha256:dcfdb5d499b04f8d0b4219b07dac07b336923a18255322c95c11d7acd7501aab active About an hour ago About an hour 5 minutes 1.097GB
postgres:16beta1-bullseye sha256:18ebf5ef322333174bf21b4ddc2d2790ccf8ef64c7780a737aeeca8109b37d28 active About an hour ago About an hour 18 minutes 1.113GB
postgres:16beta1 sha256:9288a8bae5d334c63b81ce201c8cff9766db4398b1b561492956aef2b2e6d9f6 active About an hour ago About an hour 18 minutes 1.113GB
postgres:15.3-bullseye sha256:dcfdb5d499b04f8d0b4219b07dac07b336923a18255322c95c11d7acd7501aab active About an hour ago About an hour 5 minutes 1.097GB
postgres:15.3 sha256:dcfdb5d499b04f8d0b4219b07dac07b336923a18255322c95c11d7acd7501aab active About an hour ago About an hour 5 minutes 1.097GB
postgres:15-bullseye sha256:4f97ee9d2bee2cbb8f94be66e9bdfb64804a8f621a89d39c4dfa46c3993afbe5 active About an hour ago About an hour 5 minutes 1.097GB
postgres:15 sha256:dcfdb5d499b04f8d0b4219b07dac07b336923a18255322c95c11d7acd7501aab active About an hour ago About an hour 5 minutes 1.097GB
postgres:14.8-bullseye sha256:5c12a789c541307b6f5dc989107d76feb85555443c43c71be51002212f540e48 active About an hour ago About an hour 5 minutes 1.09GB
postgres:14.8 sha256:5c12a789c541307b6f5dc989107d76feb85555443c43c71be51002212f540e48 active About an hour ago About an hour 5 minutes 1.09GB
postgres:14-bullseye sha256:5c12a789c541307b6f5dc989107d76feb85555443c43c71be51002212f540e48 active About an hour ago About an hour 5 minutes 1.09GB
postgres:14 sha256:5c12a789c541307b6f5dc989107d76feb85555443c43c71be51002212f540e48 active About an hour ago About an hour 5 minutes 1.09GB
postgres:13.11-bullseye sha256:573d0dbcdde4522c6db0a0c50e4f68653c3ba1e70d081cca42d0fee87f67455f active About an hour ago About an hour 4 minutes 1.079GB
postgres:13.11 sha256:573d0dbcdde4522c6db0a0c50e4f68653c3ba1e70d081cca42d0fee87f67455f active About an hour ago About an hour 4 minutes 1.079GB
postgres:13-bullseye sha256:573d0dbcdde4522c6db0a0c50e4f68653c3ba1e70d081cca42d0fee87f67455f active About an hour ago About an hour 4 minutes 1.079GB
postgres:13 sha256:573d0dbcdde4522c6db0a0c50e4f68653c3ba1e70d081cca42d0fee87f67455f active About an hour ago About an hour 4 minutes 1.079GB
postgres:12.15-bullseye sha256:e1ddf56307e5ba4f2ea84972cba6c7c7d4a38eb877ba84d88aa6ed32c5da239d active About an hour ago About an hour 12 minutes 1.076GB
postgres:12.15 sha256:e1ddf56307e5ba4f2ea84972cba6c7c7d4a38eb877ba84d88aa6ed32c5da239d active About an hour ago About an hour 12 minutes 1.076GB
postgres:12-bullseye sha256:e1ddf56307e5ba4f2ea84972cba6c7c7d4a38eb877ba84d88aa6ed32c5da239d active About an hour ago About an hour 12 minutes 1.076GB
postgres:12 sha256:e1ddf56307e5ba4f2ea84972cba6c7c7d4a38eb877ba84d88aa6ed32c5da239d active About an hour ago About an hour 12 minutes 1.076GB
postgres:11.20-bullseye sha256:d2d7021dc4e71399876c2f427172a91c279140d99eafb2322543fc8f1dbe0c2e active 2 hours ago 2 hours 8 minutes 1.068GB
postgres:11-bullseye sha256:d2d7021dc4e71399876c2f427172a91c279140d99eafb2322543fc8f1dbe0c2e active 2 hours ago 2 hours 8 minutes 1.068GB
postgres:16beta1-alpine3.18 sha256:5c0c4788a82f24b5bbdfdee20bb1d2596f5df9e3557b6d62d28737a807bdb7da active 13 days ago 13 days 48 minutes 670.6MB
postgres:16beta1-alpine3.17 sha256:ab0ab8a38bf59e9b96c2f2b2cdd2af8386fd47e9118837cfc63521db6f8fc615 active 13 days ago 13 days 18 minutes 680MB
postgres:16beta1-alpine sha256:11def49016e5c978b95da13b4b4c60b117379e353a4c583b5a5fd873fa7f377d active 13 days ago 13 days 48 minutes 670.6MB
postgres:alpine3.18 sha256:58a4e7ae605e8e247180ebba1cc3758ab20677e9a5221ab3150a74f47938b8a1 active 3 weeks ago 3 weeks 6 minutes 657MB
postgres:alpine3.17 sha256:c1273693a4fa3cbd65e1c3df72b646d50368ab0bdde8a7b35446834b5fa7ff2d active 3 weeks ago 3 weeks 16 minutes 674.2MB
postgres:alpine sha256:58a4e7ae605e8e247180ebba1cc3758ab20677e9a5221ab3150a74f47938b8a1 active 3 weeks ago 3 weeks 6 minutes 657MB
postgres:15.3-alpine3.18 sha256:58a4e7ae605e8e247180ebba1cc3758ab20677e9a5221ab3150a74f47938b8a1 active 3 weeks ago 3 weeks 6 minutes 657MB
postgres:15.3-alpine3.17 sha256:c1273693a4fa3cbd65e1c3df72b646d50368ab0bdde8a7b35446834b5fa7ff2
330 天前
回复了 AaronLee 创建的主题 Docker 如何自动给 docker image 打标签?
github action 设置每天定时跑一次,去检查一下 pg 有新版本发布没有,有了就用新版本号去 sed 一下 dockerfile 里的旧版本号,然后 build ,push
330 天前
回复了 perfectlife 创建的主题 上海 魔都 浦江线闵瑞路求租
@madewocao 一室户就算了,合租太闹心
就怕腾讯说这个是三方工具,参考当年的 lol 盒子
1 ... 7  8  9  10  11  12  13  14  15  16 ... 30  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1535 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms · UTC 23:52 · PVG 07:52 · LAX 16:52 · JFK 19:52
Developed with CodeLauncher
♥ Do have faith in what you're doing.