Skip to main content

CSEP 552: Lab 4 part 2 design questions

Design draft due Monday, November 23 at 11:59pm on Gradescope.

Here are some questions to help you design your lab 4 part 2 protocol, based on the discussion in lecture.

Please choose at least 3 questions below that you think are interesting/challenging, and briefly sketch your ideas or questions about them. Submit your results as a PDF to Gradescope. We will then discuss these issues in class on November 24.

Replication

  • What types of operations/messages are you replicating via Paxos?
  • Are there any messages received by the ShardStoreServer that don't need to be replicated?
  • For each type, what do you do when a decision is reached?
  • How do you interface with Paxos subnodes (i.e. what are you adding to the log)?
  • What checks do you make before sending a command to the Paxos subnode? What checks do you make after receiving a decision from the Paxos subnode?
  • When a group takes an action, does the whole group do it or just the leader?

Sharding

  • How do servers find out about new configurations? What about clients?
  • How do you store sharded AMOApplications within server nodes?
  • When are all the AMOApplications for shards initialized? Which node(s) initialize the AMOApplications?
  • How does the client know which server to send commands to? Similarly, how do servers know which shards they own?
  • Is it possible for clients to send a key-value operation to the wrong group? If not, why not? If yes, how will you handle this case?
  • How are you going to handle the issue of repeated Query(-1) commands from clients? (See slide 75 of the section 5 slides.)

Reconfiguration

  • How do you know whether you are in an active configuration (and are able to process SingleKeyCommands)?
  • When can a server start transitioning to a new configuration?
  • How do you make sure all ShardStoreServers in a Paxos Group know about the new config?
  • How will you make sure a server does not skip a configuration?
  • During a reconfig, how does each server track progress?
  • What data structures (if any) do you need? How are they initialized?
  • What state has to move along with a shard?
  • What additional messages are necessary to handle reconfiguration (i.e. how are you moving shards)?
  • If a ShardMove message gets dropped, who is responsible for detecting and retransmitting? How do you handle duplicate ShardMove messages?
  • What if a ShardMove comes from the future, i.e. with a higher configNum than what is currently known?
  • Should you delete shard data you no longer own? When can you do that?
  • Are you setting new timers during reconfiguration?
  • What do you do with commands that arrive during reconfiguration?
  • What do you do with commands that are chosen during reconfiguration?
  • What, if any, actions does a ShardStoreServer take when it receives reconfiguration messages pertaining to older configurations?