Skip to content

Instantly share code, notes, and snippets.

@trongnghia203
Last active June 26, 2020 05:40
Show Gist options
  • Save trongnghia203/410018605a9bea49c27d3732a2b12c7c to your computer and use it in GitHub Desktop.
Save trongnghia203/410018605a9bea49c27d3732a2b12c7c to your computer and use it in GitHub Desktop.
zalora-sre test

zalora-sre

1. README_1.txt

[sre_test@node045 ~]$ cat README_1.txt 
A php script is setup in this server and you can access to it by following command.

$ curl -v localhost

But it doesn't return status code 200 and fails due to an issue.
Please fix the issue without changing any files in /var.

Resolved:

Result:

result1

2. README_2.txt

Write a shell script to count the number of accesses per status code of /var/log/nginx/access.log.json

Please put the script in /tmp

Resolved:

  • I have put the bash script at: /tmp/count_accesses.sh and /home/sre_test/count_accesses.sh
  • Usage~:$ bash /tmp/count_accesses.sh

Result:

result2

3. README_3.txt

/root/docker-compose has a set of files for starting a docker service, but there is a blocker of running it properly.

Please fix the issue to make the expected feature(reverse proxy to www.zalora.com) working and confirm it.

Resolved:

  • Not really catch-up, I've just tried to run: cd /root/docker-compose/ && docker-compose up --build

    result3

  • Using curl to check, and they look similar... It seems to be working, isn't it?

    result4

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