Get a troubleshooting question in the interview, and you are excited because some troubleshooting techniques came to your mind immediately?
Hold on!
Diving into a specific solution without clarifying the issue is usually a bad practice.
You should always ask questions to clarify the issue and start from the big picture.
Using "binary search"(yes or no question) to clarify the issue is a common practice.
"Users report they got error when visiting your website"
The big picture is this kind of troubleshooting question can usually be broken down into 3 parts.
Hold on!
Diving into a specific solution without clarifying the issue is usually a bad practice.
You should always ask questions to clarify the issue and start from the big picture.
Using "binary search"(yes or no question) to clarify the issue is a common practice.
"Users report they got error when visiting your website"
The big picture is this kind of troubleshooting question can usually be broken down into 3 parts.
- client side issue
- network issue
- server side issue
After getting the big picture, you can start troubleshooting.
client side issues
- Can you reproduce it?
- Yes - it's obvious there is a bug. Find out what the bug is and file it. If you can not precisely find the root cause, at least summarize how to reproduce it, so the engineers who are in charge of this can better address the issue.
- Caused by cache?
- Caused by wrong parameters?
- No - Ask the user to
- try again in incognito mode
- use another browser
- clear browser cache
- If one of the above approaches works, then users get a temporary workaround. However, it's likely there are bugs in our client side code. We better figure out what the bugs are.
- It's likely the bugs are related to cache logic
- If it's possible, ask users to record Charles Proxy log to see if the request is correct
- Were parameters set correctly?
- No - why? are there bugs in our client side code(e.g. js code)?
network issue
- Use traceroute to see where the problem happened.
- if the problem is in your network or user's network
- Is ARP working as expected?
- Is configuration all correct? (wrong switch setup?)
- if the problem is outside of your or user's network
- Call ISP for help
server side issue
- Server program bugs
- Read logs to see what happened.
- Resources:
- use top command to see CPU usage
- use vmstat to see memory usage
- use df to see disk usage
- Dependency:
- if database is working as expected
- if CDN is working as expected
Comments
Post a Comment