distributed

Dstributed Erlang, networking, echo server

给你一囗甜甜゛ 提交于 2019-12-09 01:28:27
so my year long project involves doing some pretty nasty stuff with Erlang. I am just starting to get to grips with it. I have very limited knowledge of networking and need to ask how/why something doesn't work. I followed the code from this guide, http://20bits.com/article/network-programming-in-erlang , that provides Erlang code for a server to echo back text that is fed into it The instructions to run it is to start the erlang code, he reccomends port 8888, and then telnet to the localhost and voila, access to the echo server My question is, would it be easy for me to run this server on my

Correct way to use Apache Shiro on distributed system using RMI? [duplicate]

怎甘沉沦 提交于 2019-12-08 07:51:28
问题 This question already has answers here : How to organize RMI Client-Server architecture (2 answers) Closed 6 years ago . I'm looking for some guidelines/tips on how to implement Apache Shiro as a part of a distributed system (client-server) using Java RMI. I've looked at the answer to this thread : How to organize RMI Client-Server architecture and I'm thinking of using something similar. What I have planned is a remote object (possibly a Singleton?) that handles the authentication when the

Generating short URLs in a distributed data store

三世轮回 提交于 2019-12-08 07:27:03
问题 Currently I run a web app that heavily relies on short URLs that link to the original content, these URLs need to be as short as possible. At the moment, I use a simple MySQL data store for storing these objects and an incrementing counter -> base 62 conversion to generate short urls that will grow over time. We need to move to a more distributed and scalable environment. What is the best way of generating small, unique short Urls for content in a distributed data store? To be specific we

Does Hazelcast have a distributed priority queue implementation?

别说谁变了你拦得住时间么 提交于 2019-12-08 03:33:24
问题 We need to implement a distributed priority queue within Hazelcast at the moment and the only documentation we can find on the matter is this: https://blog.hazelcast.com/priority-queueing-using-spi/, which is not a production ready implementation. It references MigrationAwareService and BackupAwareOperation interfaces and provides a basic example for how to implement them, but after inspecting Hazelcast's own QueueService it doesn't look like these examples will suffice. Is it better to use

Profiling network software / Profiling software with lot of system call waiting

戏子无情 提交于 2019-12-08 01:24:36
问题 I'm working on a complex network software and I have trouble determining how to improve the systems performance. Specifically in one part of the software which is using blocking synchronous calls. Since this part of the system is doing heavy computations it's nearly impossible to determine whether the slowness of this component is caused by these computations or the waiting for the other parts of the system. Are there any light-weight profilers that can capture this information? I can't use

Generating short URLs in a distributed data store

烂漫一生 提交于 2019-12-07 22:42:29
Currently I run a web app that heavily relies on short URLs that link to the original content, these URLs need to be as short as possible. At the moment, I use a simple MySQL data store for storing these objects and an incrementing counter -> base 62 conversion to generate short urls that will grow over time. We need to move to a more distributed and scalable environment. What is the best way of generating small, unique short Urls for content in a distributed data store? To be specific we plan to use either Mongo or DynamoDB . Chris Shain I'd suggest you have a look at Jon Skeet's description

java: how to set a global thread-ID?

情到浓时终转凉″ 提交于 2019-12-07 20:48:29
问题 Is there any possibility to set unique ID for a thread? In distributed system where threads are created on many different machines (e.g. by RMI)? I need it to create log messages. From my research I know that it can be done using log4j mdc/ndc, but only in single thread. My problem is that ID has to be set when thread is created (to use the same ID for threads on different JVM but for the same request) I am new to distributed systems. 回答1: If you want to have a globally unique request id, you

How good is NTP for distributed time synchronization?

痴心易碎 提交于 2019-12-07 10:10:10
问题 How accurate is NTP for keeping a set of servers time synchronized? I'm writing a service which requires a set of servers (some acting as clients, some as servers) synchronized to second level granularity. I'm wondering if NTP is the best thing to use, or if there's something better? Should I run a ntp server on one of them, and have the others use that as their source? Any other recommendations/horror stories with NTP? All the servers are linux. Update: Service levels: I'd like the one

socket appenders - basic example step by step [closed]

喜你入骨 提交于 2019-12-07 06:18:23
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Could you recommend simple tutorial about using log4j in distributed system, especially about SocketAppender? I tried to find some

Access distributed mnesia database from different nodes

社会主义新天地 提交于 2019-12-07 05:34:47
问题 I have a mnesia database containning different tables. I want to be able to access the tables from different Linux terminals. I have a function called add_record , which takes a few parameters, say name and id . I want to be able to call add_record on node1 and add record on node2 but I want to be updating the same table from different locations. I read a few sources and the only thing i found out was that i should use net_adm:ping (node2). but somehow I cant access the data from the table.