Skip to content

Instantly share code, notes, and snippets.

View skahler-yuga's full-sized avatar

Scott Kahler skahler-yuga

  • Yugabyte
  • Kansas City, MO
View GitHub Profile

Using the Windows Subsystem for Linux terminal on a windows machine with Ubuntu

The terminal can be tweaked by editing settings.json to change font or other settings

		// Cursor Tweaks
		"cursorColor": "#FFFFFF",
		"cursorShape": "filledBox",
		// Looks
 "fontSize": 12,
@skahler-yuga
skahler-yuga / prometheus_locked.md
Last active April 5, 2021 20:31
prometheus won't start

The prometheus container won't start and is repeatedly dying

[root@yugahome01 yugabyte]# docker ps -f "status=exited"
CONTAINER ID        IMAGE                                       COMMAND                  CREATED             STATUS                      PORTS               NAMES
ad1a88de0a24        192.168.10.10:9874/prom-prometheus:v2.2.1   "/bin/prometheus --c…"   21 minutes ago      Exited (0) 21 minutes ago                       prometheus
[root@yugahome01 yugabyte]# docker logs ad1a88de0a24
level=info ts=2021-03-30T22:12:59.367341272Z caller=main.go:220 msg="Starting Prometheus" version="(version=2.2.1, branch=HEAD, revision=bc6058c81272a8d938c05e75607371284236aadc)"
level=info ts=2021-03-30T22:12:59.367487198Z caller=main.go:221 build_context="(go=go1.10, user=root@149e5b3f0829, date=20180314-14:15:45)"
level=info ts=2021-03-30T22:12:59.3675326Z caller=main.go:222 host_details="(Linux 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 ad1a88de0a24 (none))"
@skahler-yuga
skahler-yuga / ansible_in_yugaware.md
Last active March 31, 2021 16:26
running ansible in the yugaware container

In order to run ansible within the yugaware docker container you need to add the python environment this is done with a pywrapper script in the devops bin directory

cd /opt/yugabyte/devops

./bin/pywrapper ansible-playbook ...

Example

@skahler-yuga
skahler-yuga / multiiple_durations_per_execution_in_postgresql_log.md
Last active March 31, 2021 16:29
three durations when postgresql log_duration is set to true

In the following yugabyte posrgresql logs with some debug turned on

log_duration=true

this is put in ysql_pg.conf via --ysql_pg_conf

why do we have multiple duration times?

2021-03-12 20:14:45.780 UTC [29800] LOG: execute : SELECT id, person_id, phone_number, created, modified, verified_date, type FROM phones WHERE person_id IN ($1)

Keybase proof

I hereby claim:

  • I am skahler-yuga on github.
  • I am skahleryuga (https://keybase.io/skahleryuga) on keybase.
  • I have a public key ASBonJUDiuRmEwEnbYkrHaTeQOj6M6UFO-a9LXX-J7aLawo

To claim this, I am signing this object: