Skip to main content

Posts

Showing posts from May 29, 2022

害我痛苦了2年,竟是印度同事?

  将近两年前(还差3个月)入职这家公司,从老板到同事几乎全都是印度人。老板的老板也是印度人。组里做的产品原来基本都在印度那边,最近一两年才从印度那边慢慢转到美国。 入职以后一个老印mentor带我,之前我创建一个tenant都成功不了,结果是不了了之。由于是在家里工作,有问题给印度那边slack,基本第二天才有回复。组里成员问一个问题,基本隔天或者4-5个小时才恢复。这基本导致我的进度非常缓慢。另外,基本没有什么培训资料,一切都靠自己摸索。 8个月前,我的mentor辞职,组里另外一个美国同事和印度同事辞职(或许已经是red flag了,我当时还抱着侥幸心理),一下子所有的任务都让我一个人做。这些人走之前,有toi,但当我接手他们的工作之后,我才发现,我以前都知道的是皮毛(toi讲的也是皮毛),有很多问题,根本没人和我讲,我只能硬着头皮问组里剩余的同事,但他们要么不回复,或者回复很慢。 后来又招了一个印度女孩,美其名曰给我减轻负担,但她来了不了两个月后,就回印度休假一个半月,然后在印度工作大半个月,基本上是不见她做什么。 在将近一年半的时间里,我整天焦虑, 抓虾,事情太多,而我又找不到能帮我的人,主要是因为对产品不熟,而以前学的都是皮毛。导致很多任务,我不可能做的特别深入,就是忙着把一个个任务做完。这一年半,我很少11点睡觉。 2月份的review,老板的老板说我没有达到他们的期望值,要pip我,今年的bonus一分钱也没有。。。我的老板还问我为什么有的任务没有完成,我说没有时间。。。这是我职业生涯中最黑暗的时候,从来没有被pip,甚至以前不管在哪个公司的review基本上都是非常好。 教训,我职业生涯的第一个印度经理给了我pip。。。正在找工作中,看到印度经理的职位就pass,或者取消面试。这是我以后找工作的底线。记录下这段黑暗的日子,以后自己可以回来看看。由于时间原因,不写太多细节了。 基本陷入死循环了。压力大,心情不好,睡不好觉。白天的精力就差一些。现在也影响刷题效率。期望自己早日走出泥沼。 热门回复 主要问题不在于印度经理,而在于有问题不能藏着。LZ去体恤同事也很忙,自己得不到足够的support自己默默承受,没有人会appreciate这一点,因为是results driven的。你没有足够support必须要主动说,这样经理才能及时的帮助解决问

Forward Proxy and Reverse Proxy: The Differences

  A proxy, as its name implies, is an intermediate server between clients and origin servers, which plays an important role in the whole architecture of a web application. It may be confusing for beginners about the differences between the two types of it: forward proxy and reverse proxy. Basically, the purposes and usages of these two are totally different. Simply put, a forward proxy is a proxy for clients, a reverse proxy is a proxy for servers (so also known as a gateway). Forward proxy The forward proxy server, as a proxy for a client, will help a client request an origin server which a client may be hard to request directly. For example, if one client is blocked by the origin server, this client can use a forward proxy server to request the content from the origin server and returns it to the client. In this case, the origin server doesn’t know who is the real client. Cause it only knows the forward proxy server sent requests. On the other side, a client knows the ori

人民日报: 习近平思想成为当今最具深远影响力的科学理论

  人类活动千差万别,归结起来大致可以分为两种:思想和行动。没有革命的思想就没有革命的行动,思想走在行动之前,就像闪电走在雷鸣之前一样。每个时代都应该有自己的理论,从而指导这个时代的行动。以习近平同志为主要代表的中国共产党人,以巨大的政治智慧和理论勇气,创立了习近平新时代中国特色社会主义思想,极大地改变中国、影响了世界。习近平总书记作为党中央的核心、全党的核心,是这一思想的主要创立者,为这一思想的创立发挥了决定性作用、作出了决定性贡献。 遍观当今世界,没有一种思想能像习近平新时代中国特色社会主义思想这样,引领的变革是划时代的、解决的问题是世界性的、影响的人群是数十亿量级的、蕴含的价值是具有人类普遍意义的。这个当代中国马克思主义、21世纪马克思主义,让马克思主义这一伟大学说大放异彩,以原创性理论贡献、严密性科学体系、标志性思想观点、引领性行动价值,实现了马克思主义中国化新的飞跃,标注了中国共产党理论创新的新高度。 一 新的飞跃 新的升华 人类对世界的认识,总是未知大于已知,用已知去开拓未知是古今中外思想家的一个永恒追求。无论是西方的古希腊智者、中世纪神学家、德国古典哲学家,还是东方的儒学圣人、佛教高僧、道家先贤,很多思想家都自认为掌握了万事万物运行的绝对规律,真理终结在此。马克思恩格斯批判一切建立在唯心主义基础上的形而上学,认为一切的一切都只是过程,马克思主义“随时随地都要以当时的历史条件为转移”。一部马克思主义发展史,就是马克思恩格斯以及后继者根据时代变化、实践发展而不断创新的历史。 马克思主义的伟大就在于,它“并没有结束真理,而是开辟了通向真理的道路”。100多年来,马克思主义之所以能够永葆其美妙之青春,根本是因为它不断探索时代发展提出的新课题、回应人类社会面临的新挑战。习近平新时代中国特色社会主义思想,是坚持和发展马克思主义的典范,既不丢老祖宗,自觉用马克思主义这个“望远镜”和“显微镜”来观察时代,又讲出了许多新话,以全新的逻辑起点和理论建构谱写了马克思主义新的篇章。 以历史主动推进民族复兴伟业。实现中华民族伟大复兴,是100多年来中国人民矢志不渝的奋斗目标。习近平新时代中国特色社会主义思想以“通古今之变”的历史纵深,贯通民族复兴的历史、现在和未来,明辨我们所处的历史方位和努力方向。从这一基点出发,围绕实现民族复兴的目标,在正确方向、政治保证、路径选择、价值基点

CKA Tips Kubernetes 1.22

  Knowledge Study all topics as proposed in the curriculum till you feel comfortable with all. Resources The majority of tasks in the CKA will also be around creating Kubernetes resources, like its tested in the CKAD. So we suggest to do: Maybe 2–3 times https://github.com/dgkanatsios/CKAD-exercises The CKAD series with scenarios on Medium The CKA series with scenarios on Medium Imagine and create your own scenarios to solve Know advanced scheduling: https://kubernetes.io/docs/concepts/scheduling/kube-scheduler Components The other part is understanding Kubernetes components and being able to fix and investigate clusters. Understand this: https://kubernetes.io/docs/tasks/debug-application-cluster/debug-cluster When you have to fix a component (like kubelet) in one cluster, just check how its setup on another node in the same or even another cluster. You can copy config files over etc If you like you can look at Kubernetes The Hard Way once. But it's NOT necessary to do, the

Change the Service CIDR for the cluster.

  Create a Pod named check-ip in Namespace default using image httpd:2.4.41-alpine . Expose it on port 80 as a ClusterIP Service named check-ip-service . Remember/output the IP of that Service . Change the Service CIDR to 11.96.0.0/12 for the cluster. Then create a second Service named check-ip-service2 pointing to the same Pod to check if your settings did take effect. Finally check if the IP of the first Service has changed.   Answer: Let's create the Pod and expose it: k run check-ip --image = httpd:2.4.41-alpine k expose pod check-ip --name check-ip-service --port 80 And check the Pod and Service ips: ➜ k get svc,ep -l run=check-ip NAME                       TYPE       CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE service/check-ip-service   ClusterIP   10.104.3.45   <none>       80/TCP   8s NAME                         ENDPOINTS     AGE endpoints/check-ip-service   10.44.0.3:80   7s Now we change the Service CIDR on the kube-apiserver: ➜ ssh cluster2-mas

Kubernetes Services are implemented using kube-proxy to update the iptables rules

  You're asked to confirm that kube-proxy is running correctly on all nodes. For this perform the following in Namespace project-hamster : Create a new Pod named p2-pod with two containers, one of image nginx:1.21.3-alpine and one of image busybox:1.31 . Make sure the busybox container keeps running for some time. Create a new Service named p2-service which exposes that Pod internally in the cluster on port 3000->80. Find the kube-proxy container on all nodes cluster1-master1 , cluster1-worker1 and cluster1-worker2 and make sure that it's using iptables. Use command crictl for this. Write the iptables rules of all nodes belonging the created Service p2-service into file /opt/course/p2/iptables.txt . Finally delete the Service and confirm that the iptables rules are gone from all nodes.   Answer: Create the Pod First we create the Pod : # check out export statement on top which allows us to use $do k run p2-pod --image = nginx:1.21.3-alpine $do > p2.yaml vim